CustomButton constructor
const
CustomButton({ - Key? key,
- Color buttonColor = ColorHelper.primaryBlue,
- required String buttonText,
- double buttonWidth = double.infinity,
- double? buttonHeight,
- VoidCallback? onTap,
- double fontSize = 15,
- FontWeight fontWeight = FontWeight.w600,
- EdgeInsets? padding,
- 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,
});