BaseButton constructor

const BaseButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. String? text,
  4. Widget? child,
  5. Color? backgroundColor,
  6. Color? textColor,
  7. Color? borderColor,
  8. double? fontSize,
  9. FontWeight? fontWeight,
  10. double? borderRadius,
  11. EdgeInsets? padding,
  12. bool hasHapticFeedback = true,
  13. bool? isDisabled = false,
  14. bool? isLoading = false,
  15. BoxDecoration? bgDecoration,
  16. Color? disabledBackgroundColor,
  17. 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,
});