AppButton constructor

const AppButton({
  1. Key? key,
  2. required Widget text,
  3. double? width,
  4. double? height,
  5. Color? color,
  6. Color? textColor,
  7. double? borderRadius,
  8. double? fontSize,
  9. FontWeight? fontWeight,
  10. VoidCallback? onTap,
  11. BoxBorder? border,
  12. List<BoxShadow>? boxShadow,
  13. Widget? prefixIcon,
  14. Widget? suffixIcon,
  15. Gradient? gradient,
  16. bool isLoading = false,
  17. bool isDisabled = false,
})

Creates a new AppButton.

Implementation

const AppButton({
  super.key,
  required this.text,
  this.width,
  this.height,
  this.color,
  this.textColor,
  this.borderRadius,
  this.fontSize,
  this.fontWeight,
  this.onTap,
  this.border,
  this.boxShadow,
  this.prefixIcon,
  this.suffixIcon,
  this.gradient,
  this.isLoading = false,
  this.isDisabled = false,
});