CustomButton constructor
const
CustomButton({ - Key? key,
- Color btnclr = ColorHelper.primaryBlue,
- Color btnTextColor = ColorHelper.white,
- required String btnText,
- double btnWidth = double.infinity,
- double? btnHeight,
- VoidCallback? onTap,
- double fontSize = 15,
- BoxBorder? border,
- EdgeInsetsGeometry? padding,
- 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,
});