CustomButton constructor
const
CustomButton({
- Key? key,
- required String label,
- dynamic onPressed()?,
- Color? primary,
- Color? borderColor,
- Color? labelColor,
- double? fontSize,
- FontWeight? fontWeight,
- TextStyle? labelStyle,
- String? iconData,
- double? height,
- double? borderWidth,
- double? elevation,
- Color? boxShadowColor,
- bool isBorder = false,
- double? width,
- double? borderRadiusAll,
- double? marginHorizontal,
- double? marginVertical,
- EdgeInsetsGeometry? margin,
- double? contentPadding,
- double? contentHorizontalPadding,
- double? contentVerticalPadding,
- EdgeInsetsGeometry? padding,
- bool isDisable = false,
- String? prefixImage,
- String? suffixImage,
- double? suffixImageHeight,
- double? suffixImageWidth,
- Color? suffixImageColor,
- double? prefixImageHeight,
- double? prefixImageWidth,
- Color? prefixImageColor,
- bool loading = false,
- Color? loadingColor,
- Color? disableColor,
- double? loadingHeight,
- double? loadingWidth,
- double loadingStrokeWidth = 4.0,
- BorderRadiusGeometry? borderRadius,
Implementation
const CustomButton({
Key? key,
required this.label,
this.onPressed,
this.primary,
this.borderColor,
this.labelColor,
this.fontSize,
this.fontWeight,
this.labelStyle,
this.iconData,
this.height,
this.borderWidth,
this.elevation,
this.boxShadowColor,
this.isBorder = false,
this.width,
this.borderRadiusAll,
this.marginHorizontal,
this.marginVertical,
this.margin,
this.contentPadding,
this.contentHorizontalPadding,
this.contentVerticalPadding,
this.padding,
this.isDisable = false,
this.prefixImage,
this.suffixImage,
this.suffixImageHeight,
this.suffixImageWidth,
this.suffixImageColor,
this.prefixImageHeight,
this.prefixImageWidth,
this.prefixImageColor,
this.loading = false,
this.loadingColor,
this.disableColor,
this.loadingHeight,
this.loadingWidth,
this.loadingStrokeWidth = 4.0,
this.borderRadius,
}) : super(key: key);