DefaultButton constructor

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