ButtonWidget constructor
ButtonWidget({
- Key? key,
- required dynamic onPress()?,
- required Color colorButton,
- Color colorBorder = CustomColors.defaultColor,
- Color colorText = Colors.white,
- required String textButton,
- required BorderRadius borderRadius,
- double height = 45,
- double marginBottom = 0,
- double marginRight = 0,
- 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);