GradientButton constructor

const GradientButton({
  1. required String buttonText,
  2. required Function? handleTap,
  3. Color? disabledFill,
  4. bool customRadius = false,
  5. double fontSize = 18,
  6. double height = 40,
  7. double width = 120,
  8. Widget? icon,
  9. FontWeight? fontWeight,
  10. bool isloading = false,
  11. TextStyle? customStyle,
  12. double borderRadius = 20,
  13. Color textColor = ColorConstants.white,
  14. EdgeInsets margin = EdgeInsets.zero,
  15. bool isDisabled = false,
  16. Key? key,
})

Implementation

const GradientButton({
  required this.buttonText,
  required this.handleTap,
  this.disabledFill,
  this.customRadius = false,
  this.fontSize = 18,
  this.height = 40,
  this.width = 120,
  this.icon,
  this.fontWeight,
  this.isloading = false,
  this.customStyle,
  this.borderRadius = 20,
  this.textColor = ColorConstants.white,
  this.margin = EdgeInsets.zero,
  this.isDisabled = false,
  Key? key,
}) : super(key: key);