CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String buttonText,
  3. required VoidCallback? onPressed,
  4. Color backgroundColor = AppColors.secondaryDark,
  5. double fontSize = 14,
  6. Color textColor = AppColors.white,
  7. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 16),
  8. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(12)),
  9. String fontFamily = 'Manrope',
  10. FontWeight fontWeight = FontWeight.w800,
  11. required bool isEnabled,
})

Implementation

const CustomButton({
  Key? key,
  required this.buttonText,
  required this.onPressed,
  this.backgroundColor = AppColors.secondaryDark,
  this.fontSize = 14,
  this.textColor = AppColors.white,
  this.padding = const EdgeInsets.symmetric(vertical: 16),
  this.borderRadius = const BorderRadius.all(Radius.circular(12)),
  this.fontFamily = 'Manrope',
  this.fontWeight = FontWeight.w800,
  required this.isEnabled,
}) : super(key: key);