MaterialButton constructor

const MaterialButton({Key key, @required VoidCallback onPressed, ValueChanged<bool> onHighlightChanged, ButtonTextTheme textTheme, Color textColor, Color disabledTextColor, Color color, Color disabledColor, Color highlightColor, Color splashColor, Brightness colorBrightness, double elevation, double highlightElevation, double disabledElevation, EdgeInsetsGeometry padding, ShapeBorder shape, Clip clipBehavior: Clip.none, MaterialTapTargetSize materialTapTargetSize, Duration animationDuration, double minWidth, double height, Widget child })

Creates a material button.

Rather than creating a material button directly, consider using FlatButton or RaisedButton. To create a custom Material button consider using RawMaterialButton.

Implementation

const MaterialButton({
  Key key,
  @required this.onPressed,
  this.onHighlightChanged,
  this.textTheme,
  this.textColor,
  this.disabledTextColor,
  this.color,
  this.disabledColor,
  this.highlightColor,
  this.splashColor,
  this.colorBrightness,
  this.elevation,
  this.highlightElevation,
  this.disabledElevation,
  this.padding,
  this.shape,
  this.clipBehavior = Clip.none,
  this.materialTapTargetSize,
  this.animationDuration,
  this.minWidth,
  this.height,
  this.child,
}) : super(key: key);