CustomButton constructor
const
CustomButton({
- Key? key,
- required String? txt,
- Color? colorButton = Colors.white,
- Color? colorTxt = Colors.white,
- Function? onPressed,
- Alignment? alignment = Alignment.center,
- FontWeight? fontWeight = FontWeight.w400,
- double? fontSize = 16,
- required double? width,
- required double? high,
- double? borderRadius = 10,
- required bool outLineBorder,
- Color? colorOutLineButton = Colors.white,
- double widthOutLineBorder = 0,
- String? fontFamily = '',
Implementation
const CustomButton({super.key,
required this.txt,
this.colorButton = Colors.white,
this.colorTxt = Colors.white,
this.onPressed,
this.alignment = Alignment.center,
this.fontWeight = FontWeight.w400,
this.fontSize = 16,
required this.width,
required this.high,
this.borderRadius = 10,
required this.outLineBorder,
this.colorOutLineButton = Colors.white,
this.widthOutLineBorder = 0,
this.fontFamily = '',
});