CustomButton constructor
const
CustomButton({
- Key? key,
- String? buttonText,
- required VoidCallback onTap,
- Color? buttonColor,
- double? width,
- TextStyle? buttonTextStyle,
- Widget? icon,
- BorderRadius? buttonRadius,
- EdgeInsets? buttonPadding,
- Widget? suffixWidget,
- Color? borderColor,
- Widget? prefixWidget,
- double textPadding = 0.0,
- double borderWidth = 1.5,
- bool disabled = false,
- double suffixPadding = 21,
- MainAxisSize? mainAxisSize,
- double prefixWidgetPadding = 5,
- bool loading = false,
Implementation
const CustomButton({
super.key,
this.buttonText,
required this.onTap,
this.buttonColor,
// this.height = 50,
this.width,
this.buttonTextStyle,
this.icon,
this.buttonRadius,
this.buttonPadding,
this.suffixWidget,
this.borderColor,
this.prefixWidget,
this.textPadding = 0.0,
this.borderWidth = 1.5,
this.disabled = false,
this.suffixPadding = 21,
this.mainAxisSize,
this.prefixWidgetPadding = 5,
this.loading = false,
});