CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onTap,
  4. Color? backgroundColor,
  5. Color? textColor,
  6. double? height,
  7. double? width,
  8. double? fontSize,
  9. double? borderRadius,
  10. double? elevation,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. Widget? leading,
  14. bool showBorder = false,
  15. Color? borderColor,
  16. bool isLoading = false,
})

Implementation

const CustomButton({
  super.key,
  required this.text,
  this.onTap,
  this.backgroundColor,
  this.textColor,
  this.height,
  this.width,
  this.fontSize,
  this.borderRadius,
  this.elevation,
  this.padding,
  this.margin,
  this.leading,
  this.showBorder = false,
  this.borderColor,
  this.isLoading = false,
});