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