GradientButton constructor

const GradientButton({
  1. required Widget child,
  2. required VoidCallback callback,
  3. Key? key,
  4. Gradient gradient = Gradients.hotLinear,
  5. Color shadowColor = Colors.black45,
  6. ShapeBorder? shape,
  7. BorderRadius? shapeRadius,
  8. TextStyle? textStyle,
  9. double elevation = 5.0,
  10. bool isEnabled = true,
  11. Gradient? disabledGradient,
  12. double increaseHeightBy = 0.0,
  13. double increaseWidthBy = 0.0,
  14. BoxConstraints? constraints,
  15. Object? heroTag,
  16. String? tooltip,
  17. MaterialTapTargetSize? materialTapTargetSize,
})

Implementation

const GradientButton(
    {required this.child,
    required this.callback,
    Key? key,
    this.gradient = Gradients.hotLinear,
    this.shadowColor = Colors.black45,
    this.shape,
    this.shapeRadius,
    this.textStyle,
    this.elevation = 5.0,
    this.isEnabled = true,
    this.disabledGradient,
    this.increaseHeightBy = 0.0,
    this.increaseWidthBy = 0.0,
    this.constraints,
    this.heroTag,
    this.tooltip,
    this.materialTapTargetSize})
    : super(
          key: key,
          child: child,
          callback: callback,
          shadowColor: shadowColor,
          shape: shape,
          shapeRadius: shapeRadius,
          textStyle: textStyle,
          elevation: elevation,
          isEnabled: isEnabled,
          disabledGradient: disabledGradient,
          increaseHeightBy: increaseHeightBy,
          increaseWidthBy: increaseWidthBy,
          constraints: constraints,
          heroTag: heroTag,
          tooltip: tooltip,
          materialTapTargetSize: materialTapTargetSize);