PatientButton constructor

const PatientButton({
  1. required String text,
  2. required Color backgroundColor,
  3. required VoidCallback? handleTap,
  4. bool isHollow = false,
  5. double? height,
  6. double? width,
  7. double fontSize = ConfigConstants.fontCheckoutButton,
  8. Color textColor = ConfigConstants.white,
  9. Color? backgroundColorHollow,
  10. Color? borderColor,
  11. Color? backgroundColorDisabled,
  12. Color? textColorDisabled,
  13. FontWeight fontWeight = FontWeight.bold,
  14. AlignmentGeometry? textAlignment,
  15. EdgeInsets? padding,
  16. Key? key,
})

Implementation

const PatientButton({
  required this.text,
  required this.backgroundColor,
  required this.handleTap,
  this.isHollow = false,
  this.height,
  this.width,
  this.fontSize = ConfigConstants.fontCheckoutButton,
  this.textColor = ConfigConstants.white,
  this.backgroundColorHollow,
  this.borderColor,
  this.backgroundColorDisabled,
  this.textColorDisabled,
  this.fontWeight = FontWeight.bold,
  this.textAlignment,
  this.padding,
  super.key,
});