CustomCupertinoButton constructor

const CustomCupertinoButton({
  1. Key? key,
  2. required String label,
  3. String? loadingLabel,
  4. IconData? startIconData,
  5. Color? backgroundColor,
  6. Color labelColor = Colors.white,
  7. required VoidCallback? onPressed,
  8. bool isLoading = false,
  9. bool disabled = false,
  10. bool hasShadow = false,
  11. double radius = 12,
  12. double iconSize = 20,
  13. double fontSize = 14,
  14. String? startIconRes,
  15. EdgeInsets? margin,
  16. bool bold = true,
  17. MainAxisAlignment alignment = MainAxisAlignment.center,
  18. IconData? endIconData,
  19. Widget? startIcon,
  20. String? endIconRes,
  21. double? minHeight = 55,
  22. Color? disabledColor,
  23. double? width,
  24. Color? borderColor,
  25. double spreadRadius = 0.0,
  26. double blurRadius = 4.0,
  27. String? fontFamily = "MyFont",
})

Implementation

const CustomCupertinoButton({
  super.key,
  required this.label,
  this.loadingLabel,
  this.startIconData,
  this.backgroundColor,
  this.labelColor = Colors.white,
  required this.onPressed,
  this.isLoading = false,
  this.disabled = false,
  this.hasShadow = false,
  this.radius = 12,
  this.iconSize = 20,
  this.fontSize = 14,
  this.startIconRes,
  this.margin,
  this.bold = true,
  this.alignment = MainAxisAlignment.center,
  this.endIconData,
  this.startIcon,
  this.endIconRes,
  this.minHeight = 55,
  this.disabledColor,
  this.width,
  this.borderColor,
  this.spreadRadius = 0.0,
  this.blurRadius = 4.0,
  this.fontFamily = "MyFont",
});