CustomCupertinoButton constructor
const
CustomCupertinoButton({
- Key? key,
- required String label,
- String? loadingLabel,
- IconData? startIconData,
- Color? backgroundColor,
- Color labelColor = Colors.white,
- required VoidCallback? onPressed,
- bool isLoading = false,
- bool disabled = false,
- bool hasShadow = false,
- double radius = 12,
- double iconSize = 20,
- double fontSize = 14,
- String? startIconRes,
- EdgeInsets? margin,
- bool bold = true,
- MainAxisAlignment alignment = MainAxisAlignment.center,
- IconData? endIconData,
- Widget? startIcon,
- String? endIconRes,
- double? minHeight = 55,
- Color? disabledColor,
- double? width,
- Color? borderColor,
- double spreadRadius = 0.0,
- double blurRadius = 4.0,
- 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",
});