MaterialButton constructor

const MaterialButton({Key key, Brightness colorBrightness, ButtonTextTheme textTheme, Color textColor, Color color, Color highlightColor, Color splashColor, double elevation, double highlightElevation, double minWidth, double height, EdgeInsetsGeometry padding, MaterialTapTargetSize materialTapTargetSize, Clip clipBehavior: Clip.none, @required VoidCallback onPressed, 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.

The clipBehavior argument must not be null.

Implementation

const MaterialButton({
  Key key,
  this.colorBrightness,
  this.textTheme,
  this.textColor,
  this.color,
  this.highlightColor,
  this.splashColor,
  this.elevation,
  this.highlightElevation,
  this.minWidth,
  this.height,
  this.padding,
  this.materialTapTargetSize,
  this.clipBehavior = Clip.none,
  @required this.onPressed,
  this.child
}) : assert(clipBehavior != null), super(key: key);