ButtonWidget constructor

ButtonWidget({
  1. Key? key,
  2. required dynamic onPress()?,
  3. required Color colorButton,
  4. Color colorBorder = CustomColors.defaultColor,
  5. Color colorText = Colors.white,
  6. required String textButton,
  7. required BorderRadius borderRadius,
  8. double height = 45,
  9. double marginBottom = 0,
  10. double marginRight = 0,
  11. double width = double.infinity,
})

Implementation

ButtonWidget({
  Key? key,
  required this.onPress,
  required this.colorButton,
  this.colorBorder = CustomColors.defaultColor,
  this.colorText = Colors.white,
  required this.textButton,
  required this.borderRadius,
  this.height = 45,
  this.marginBottom = 0,
  this.marginRight = 0,
  this.width = double.infinity,
}) : super(key: key);