ElevatedGradientButton constructor

const ElevatedGradientButton({
  1. Key? key,
  2. List<Color>? colors,
  3. GestureTapCallback? onPressed,
  4. EdgeInsetsGeometry? padding,
  5. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(2)),
  6. Color? textColor,
  7. Color? splashColor,
  8. Color? disabledColor,
  9. Color? disabledTextColor,
  10. ValueChanged<bool>? onHighlightChanged,
  11. Color? shadowColor,
  12. required Widget child,
})

Implementation

const ElevatedGradientButton({
  Key? key,
  this.colors,
  this.onPressed,
  this.padding,
  this.borderRadius = const BorderRadius.all(Radius.circular(2)),
  this.textColor,
  this.splashColor,
  this.disabledColor,
  this.disabledTextColor,
  this.onHighlightChanged,
  this.shadowColor,
  required this.child,
}) : super(key: key);