CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String? txt,
  3. Color? colorButton = Colors.white,
  4. Color? colorTxt = Colors.white,
  5. Function? onPressed,
  6. Alignment? alignment = Alignment.center,
  7. FontWeight? fontWeight = FontWeight.w400,
  8. double? fontSize = 16,
  9. required double? width,
  10. required double? high,
  11. double? borderRadius = 10,
  12. required bool outLineBorder,
  13. Color? colorOutLineButton = Colors.white,
  14. double widthOutLineBorder = 0,
  15. 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 = '',
});