GradientButton constructor

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

Implementation

const GradientButton({
  required this.buttonText,
  required this.handleTap,
  this.customRadius = false,
  this.fontSize = AppConstants.fontMediumX,
  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);