CustomButton constructor

const CustomButton({
  1. Key? key,
  2. Color btnclr = ColorHelper.primaryBlue,
  3. Color btnTextColor = ColorHelper.white,
  4. required String btnText,
  5. double btnWidth = double.infinity,
  6. double? btnHeight,
  7. VoidCallback? onTap,
  8. double fontSize = 15,
  9. BoxBorder? border,
  10. EdgeInsetsGeometry? padding,
  11. FontWeight? fontWeight,
})

Implementation

const CustomButton({
  super.key,
  this.btnclr=ColorHelper.primaryBlue,
  this.btnTextColor = ColorHelper.white,
  required this.btnText,
  this.btnWidth = double.infinity,
  this.btnHeight,
  this.onTap,
  this.fontSize = 15,
  this.border,
  this.padding,
  this.fontWeight,
});