GeneralButton constructor

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

Implementation

const GeneralButton({
  required this.buttonText,
  required this.buttonColor,
  required this.handleTap,
  this.customRadius = false,
  this.fontSize = AppConstants.fontMediumX,
  this.height = 60,
  this.width = 120,
  this.icon,
  this.isloading = false,
  this.borderRadius = 20,
  this.textColor = ColorConstants.white,
  this.margin = EdgeInsets.zero,
  Key? key,
}) : super(key: key);