BaseButton constructor
const
BaseButton({
- Key? key,
- VoidCallback? onPressed,
- String? text,
- Widget? child,
- Color? backgroundColor,
- Color? textColor,
- Color? borderColor,
- double? fontSize,
- FontWeight? fontWeight,
- double? borderRadius,
- EdgeInsets? padding,
- bool hasHapticFeedback = true,
- bool? isDisabled = false,
- bool? isLoading = false,
- BoxDecoration? bgDecoration,
- Color? disabledBackgroundColor,
- Color? disabledTextColor,
Implementation
const BaseButton({
super.key,
this.onPressed,
this.text,
this.child,
this.backgroundColor,
this.textColor,
this.borderColor,
this.fontSize,
this.fontWeight,
this.borderRadius,
this.padding,
this.hasHapticFeedback = true,
this.isDisabled = false,
this.isLoading = false,
this.bgDecoration,
this.disabledBackgroundColor,
this.disabledTextColor,
});