GradientButton constructor
const
GradientButton({
- required Widget child,
- required VoidCallback callback,
- Key? key,
- Gradient gradient = Gradients.hotLinear,
- Color shadowColor = Colors.black45,
- ShapeBorder? shape,
- BorderRadius? shapeRadius,
- TextStyle? textStyle,
- double elevation = 5.0,
- bool isEnabled = true,
- Gradient? disabledGradient,
- double increaseHeightBy = 0.0,
- double increaseWidthBy = 0.0,
- BoxConstraints? constraints,
- Object? heroTag,
- String? tooltip,
- 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);