AppButton constructor

const AppButton({
  1. Key? key,
  2. String? label,
  3. dynamic onTap()?,
  4. double? radius,
  5. TextStyle? labelStyle,
  6. Color? buttonColor,
  7. Gradient? gradient,
  8. Gradient? buttonBorderGradient,
  9. Color? buttonBorderColor,
  10. double? buttonBorderWidth,
  11. EdgeInsets? padding,
  12. EdgeInsets? margin,
  13. bool isFilledButton = true,
  14. Widget? child,
  15. Widget? prefix,
  16. Widget? suffix,
  17. Alignment alignment = Alignment.center,
  18. double? width,
  19. double? height,
  20. bool isLoading = false,
})

Implementation

const AppButton({
  super.key,
  this.label,
  this.onTap,
  this.radius,
  this.labelStyle,
  this.buttonColor,
  this.gradient,
  this.buttonBorderGradient,
  this.buttonBorderColor,
  this.buttonBorderWidth,
  this.padding,
  this.margin,
  this.isFilledButton = true,
  this.child,
  this.prefix,
  this.suffix,
  this.alignment = Alignment.center,
  this.width,
  this.height,
  this.isLoading = false,
});