DefaultButton constructor
DefaultButton({
- required String text,
- double border = 8.0,
- double elevation = 8.0,
- TextStyle textStyle(
- TextStyle style
- Color? activeColor,
- Color? disabledColor,
- bool enableEffectClicked = true,
- double height = 50.0,
- Widget builderText(
- String value
- VoidCallback? onPressed,
- double? textSize,
- Color? textColor,
Implementation
DefaultButton(
{required String text,
double border = 8.0,
double elevation = 8.0,
TextStyle Function(TextStyle style)? textStyle,
Color? activeColor,
Color? disabledColor,
bool enableEffectClicked = true,
double height = 50.0,
Widget Function(String value)? builderText,
VoidCallback? onPressed,
double? textSize,
Color? textColor})
: super(
text: text,
activeColor: activeColor,
disabledColor: disabledColor ?? Colors.grey[200],
textStyle: textStyle,
elevation: elevation,
height: height,
textSize: textSize,
textColor: textColor,
builderText: builderText,
enableEffectClicked: enableEffectClicked,
border: border,
onPressed: onPressed);