CustomButton constructor
const
CustomButton({
- Key? key,
- required String buttonText,
- required VoidCallback? onPressed,
- Color backgroundColor = AppColors.secondaryDark,
- double fontSize = 14,
- Color textColor = AppColors.white,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 16),
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(12)),
- String fontFamily = 'Manrope',
- FontWeight fontWeight = FontWeight.w800,
- 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);