CustomProgressButton constructor

CustomProgressButton({
  1. bool isLoading = false,
  2. bool ignorePlatform = false,
  3. required String value,
  4. double border = 8.0,
  5. double elevation = 8.0,
  6. TextStyle textStyle(
    1. TextStyle style
    )?,
  7. Color? activeColor,
  8. Color? disabledColor,
  9. double height = 50.0,
  10. bool enableEffectClicked = true,
  11. Widget builderText(
    1. String value
    )?,
  12. VoidCallback? onPressed,
  13. double? textSize,
  14. 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);