CustomButton constructor

const CustomButton({
  1. Key? key,
  2. Color buttonColor = ColorHelper.primaryBlue,
  3. required String buttonText,
  4. double buttonWidth = double.infinity,
  5. double? buttonHeight,
  6. VoidCallback? onTap,
  7. double fontSize = 15,
  8. FontWeight fontWeight = FontWeight.w600,
  9. EdgeInsets? padding,
  10. bool disabled = false,
})

Implementation

const CustomButton({
  super.key,
  this.buttonColor = ColorHelper.primaryBlue,
  required this.buttonText,
  this.buttonWidth = double.infinity,
  this.buttonHeight,
  this.onTap,
  this.fontSize = 15,
  this.fontWeight = FontWeight.w600,
  this.padding,
  this.disabled = false,
});