public FlatButton( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, MaterialTapTargetSize?materialTapTargetSize = null, Widget child = null) : base( key: key, onPressed: onPressed, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, padding: padding, shape: shape, clipBehavior: clipBehavior, materialTapTargetSize: materialTapTargetSize, child: child) { }
public ButtonBar( Key key = null, MainAxisAlignment alignment = MainAxisAlignment.end, MainAxisSize mainAxisSize = MainAxisSize.max, ButtonTextTheme?buttonTextTheme = null, float?buttonMinWidth = null, float?buttonHeight = null, EdgeInsetsGeometry buttonPadding = null, bool?buttonAlignedDropdown = null, ButtonBarLayoutBehavior?layoutBehavior = null, VerticalDirection?overflowDirection = null, float?overflowButtonSpacing = null, List <Widget> children = null ) : base(key: key) { D.assert(buttonMinWidth == null || buttonMinWidth >= 0.0f); D.assert(buttonHeight == null || buttonHeight >= 0.0f); D.assert(overflowButtonSpacing == null || overflowButtonSpacing >= 0.0f); this.alignment = alignment; this.mainAxisSize = mainAxisSize; this.buttonTextTheme = buttonTextTheme; this.buttonMinWidth = buttonMinWidth; this.buttonHeight = buttonHeight; this.buttonPadding = buttonPadding; this.buttonAlignedDropdown = buttonAlignedDropdown; this.layoutBehavior = layoutBehavior; this.overflowDirection = overflowDirection; this.overflowButtonSpacing = overflowButtonSpacing; this.children = children ?? new List <Widget>(); }
public ButtonThemeData copyWith( ButtonTextTheme?textTheme = null, ButtonBarLayoutBehavior?layoutBehavior = null, float?minWidth = null, float?height = null, EdgeInsetsGeometry padding = null, ShapeBorder shape = null, bool?alignedDropdown = null, Color buttonColor = null, Color disabledColor = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, ColorScheme colorScheme = null, MaterialTapTargetSize?materialTapTargetSize = null) { return(new ButtonThemeData( textTheme: textTheme ?? this.textTheme, layoutBehavior: layoutBehavior ?? this.layoutBehavior, minWidth: minWidth ?? this.minWidth, height: height ?? this.height, padding: padding ?? this.padding, shape: shape ?? this.shape, alignedDropdown: alignedDropdown ?? this.alignedDropdown, buttonColor: buttonColor ?? _buttonColor, disabledColor: disabledColor ?? _disabledColor, focusColor: focusColor ?? _focusColor, hoverColor: hoverColor ?? _hoverColor, highlightColor: highlightColor ?? _highlightColor, splashColor: splashColor ?? _splashColor, colorScheme: colorScheme ?? this.colorScheme, materialTapTargetSize: materialTapTargetSize ?? _materialTapTargetSize)); }
public _RaisedButtonWithIcon( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, double?elevation = null, double?highlightElevation = null, double?disabledElevation = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, MaterialTapTargetSize?materialTapTargetSize = null, TimeSpan?animationDuration = null, Widget icon = null, Widget label = null ) : base( key: key, onPressed: onPressed, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, elevation: elevation, highlightElevation: highlightElevation, disabledElevation: disabledElevation, padding: padding, shape: shape, clipBehavior: clipBehavior, materialTapTargetSize: materialTapTargetSize, animationDuration: animationDuration, child: new Row( mainAxisSize: MainAxisSize.min, children: new List <Widget> { icon, new SizedBox(width: 8.0), label } )) { D.assert(elevation == null || elevation >= 0.0); D.assert(highlightElevation == null || highlightElevation >= 0.0); D.assert(disabledElevation == null || disabledElevation >= 0.0); D.assert(icon != null); D.assert(label != null); }
public _FlatButtonWithIcon( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, VoidCallback onLongPress = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, EdgeInsetsGeometry padding = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, FocusNode focusNode = null, bool autofocus = false, MaterialTapTargetSize?materialTapTargetSize = null, Widget icon = null, Widget label = null) : base( key: key, onPressed: onPressed, onLongPress: onLongPress, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, focusColor: focusColor, hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, padding: padding, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, materialTapTargetSize: materialTapTargetSize, child: new Row( mainAxisSize: MainAxisSize.min, children: new List <Widget> { icon, new SizedBox(width: 8.0f), label } )) { D.assert(icon != null); D.assert(label != null); }
public static OutlineButton icon( Key key = null, VoidCallback onPressed = null, VoidCallback onLongPress = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, Color highlightedBorderColor = null, Color disabledBorderColor = null, BorderSide borderSide = null, EdgeInsetsGeometry padding = null, VisualDensity visualDensity = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, Widget icon = null, FocusNode focusNode = null, bool autofocus = false, Widget label = null ) { return(new _OutlineButtonWithIcon( key: key, onPressed: onPressed, onLongPress: onLongPress, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, focusColor: focusColor, hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, highlightElevation: highlightElevation, highlightedBorderColor: highlightedBorderColor, disabledBorderColor: disabledBorderColor, borderSide: borderSide, padding: padding, visualDensity: visualDensity, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, icon: icon, label: label )); }
public static FlatButton icon( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, VoidCallback onLongPress = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, EdgeInsetsGeometry padding = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, FocusNode focusNode = null, bool autofocus = false, MaterialTapTargetSize?materialTapTargetSize = null, Widget icon = null, Widget label = null) { D.assert(icon != null); D.assert(label != null); return(new _FlatButtonWithIcon( key: key, onPressed: onPressed, onLongPress: onLongPress, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, focusColor: focusColor, hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, padding: padding, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, materialTapTargetSize: materialTapTargetSize, icon: icon, label: label )); }
public _OutlineButton( Key key = null, VoidCallback onPressed = null, VoidCallback onLongPress = null, Brightness?brightness = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, BorderSide borderSide = null, Color disabledBorderColor = null, Color highlightedBorderColor = null, EdgeInsetsGeometry padding = null, VisualDensity visualDensity = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, FocusNode focusNode = null, bool autofocus = false, Widget child = null ) : base(key: key) { D.assert(highlightElevation != null && highlightElevation >= 0.0f); D.assert(highlightedBorderColor != null); this.onPressed = onPressed; this.onLongPress = onLongPress; this.brightness = brightness; this.textTheme = textTheme; this.textColor = textColor; this.disabledTextColor = disabledTextColor; this.color = color; this.focusColor = focusColor; this.hoverColor = hoverColor; this.highlightColor = highlightColor; this.splashColor = splashColor; this.highlightElevation = highlightElevation; this.borderSide = borderSide; this.disabledBorderColor = disabledBorderColor; this.highlightedBorderColor = highlightedBorderColor; this.padding = padding; this.visualDensity = visualDensity; this.shape = shape; this.clipBehavior = clipBehavior; this.focusNode = focusNode; this.autofocus = autofocus; this.child = child; }
public OutlineButton( Key key = null, VoidCallback onPressed = null, VoidCallback onLongPress = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, BorderSide borderSide = null, Color disabledBorderColor = null, Color highlightedBorderColor = null, EdgeInsetsGeometry padding = null, VisualDensity visualDensity = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, FocusNode focusNode = null, bool autofocus = false, Widget child = null ) : base( key: key, onPressed: onPressed, onLongPress: onLongPress, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, focusColor: focusColor, hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, highlightElevation: highlightElevation, padding: padding, visualDensity: visualDensity, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, child: child ) { D.assert(highlightElevation == null || highlightElevation >= 0.0f); this.highlightedBorderColor = highlightedBorderColor; this.disabledBorderColor = disabledBorderColor; this.borderSide = borderSide; }
public static RaisedButton icon( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, double?elevation = null, double?highlightElevation = null, double?disabledElevation = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip?clipBehavior = null, MaterialTapTargetSize?materialTapTargetSize = null, TimeSpan?animationDuration = null, Widget icon = null, Widget label = null) { D.assert(icon != null); D.assert(label != null); return(new _RaisedButtonWithIcon( key: key, onPressed: onPressed, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, elevation: elevation, highlightElevation: highlightElevation, disabledElevation: disabledElevation, padding: padding, shape: shape, clipBehavior: clipBehavior, materialTapTargetSize: materialTapTargetSize, animationDuration: animationDuration, icon: icon, label: label)); }
public _OutlineButtonWithIcon( Key key = null, VoidCallback onPressed = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, Color highlightedBorderColor = null, Color disabledBorderColor = null, BorderSide borderSide = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, Widget icon = null, Widget label = null ) : base( key: key, onPressed: onPressed, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, highlightColor: highlightColor, splashColor: splashColor, highlightElevation: highlightElevation, disabledBorderColor: disabledBorderColor, highlightedBorderColor: highlightedBorderColor, borderSide: borderSide, padding: padding, shape: shape, clipBehavior: clipBehavior, child: new Row( mainAxisSize: MainAxisSize.min, children: new List <Widget> { icon, new SizedBox(width: 8.0f), label } ) ) { D.assert(highlightElevation == null || highlightElevation >= 0.0f); D.assert(icon != null); D.assert(label != null); }
public RaisedButton( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, double?elevation = null, double?highlightElevation = null, double?disabledElevation = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, MaterialTapTargetSize?materialTapTargetSize = null, TimeSpan?animationDuration = null, Widget child = null ) : base( key: key, onPressed: onPressed, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, elevation: elevation, highlightElevation: highlightElevation, disabledElevation: disabledElevation, padding: padding, shape: shape, clipBehavior: clipBehavior, materialTapTargetSize: materialTapTargetSize, animationDuration: animationDuration, child: child) { D.assert(elevation == null || elevation >= 0.0); D.assert(highlightElevation == null || highlightElevation >= 0.0); D.assert(disabledElevation == null || disabledElevation >= 0.0); }
public FlatButton( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, VoidCallback onLongPress = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, EdgeInsetsGeometry padding = null, VisualDensity visualDensity = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, FocusNode focusNode = null, bool autofocus = false, MaterialTapTargetSize?materialTapTargetSize = null, Widget child = null) : base( key: key, onPressed: onPressed, onLongPress: onLongPress, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, focusColor: focusColor, hoverColor: hoverColor, color: color, disabledColor: disabledColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, padding: padding, visualDensity: visualDensity, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, materialTapTargetSize: materialTapTargetSize, child: child) { }
public MaterialButton( Key key = null, VoidCallback onPressed = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, double?elevation = null, double?highlightElevation = null, double?disabledElevation = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, MaterialTapTargetSize?materialTapTargetSize = null, TimeSpan?animationDuration = null, double?minWidth = null, double?height = null, Widget child = null ) : base(key: key) { this.onPressed = onPressed; this.onHighlightChanged = onHighlightChanged; this.textTheme = textTheme; this.textColor = textColor; this.disabledTextColor = disabledTextColor; this.color = color; this.disabledColor = disabledColor; this.highlightColor = highlightColor; this.splashColor = splashColor; this.colorBrightness = colorBrightness; this.elevation = elevation; this.highlightElevation = highlightElevation; this.disabledElevation = disabledElevation; this.padding = padding; this.shape = shape; this.clipBehavior = clipBehavior; this.materialTapTargetSize = materialTapTargetSize; this.animationDuration = animationDuration; this.minWidth = minWidth; this.height = height; this.child = child; }
public static OutlineButton icon( Key key = null, VoidCallback onPressed = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, Color highlightedBorderColor = null, Color disabledBorderColor = null, BorderSide borderSide = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, Widget icon = null, Widget label = null ) { return(new _OutlineButtonWithIcon( key, onPressed, textTheme, textColor, disabledTextColor, color, highlightColor, splashColor, highlightElevation, highlightedBorderColor, disabledBorderColor, borderSide, padding, shape, clipBehavior, icon, label )); }
public _OutlineButton( Key key = null, VoidCallback onPressed = null, Brightness?brightness = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, BorderSide borderSide = null, Color disabledBorderColor = null, Color highlightedBorderColor = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, Widget child = null ) : base(key: key) { D.assert(highlightElevation != null && highlightElevation >= 0.0f); D.assert(highlightedBorderColor != null); this.onPressed = onPressed; this.brightness = brightness; this.textTheme = textTheme; this.textColor = textColor; this.disabledTextColor = disabledTextColor; this.color = color; this.highlightColor = highlightColor; this.splashColor = splashColor; this.highlightElevation = highlightElevation; this.borderSide = borderSide; this.disabledBorderColor = disabledBorderColor; this.highlightedBorderColor = highlightedBorderColor; this.padding = padding; this.shape = shape; this.clipBehavior = clipBehavior; this.child = child; }
public OutlineButton( Key key = null, VoidCallback onPressed = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color highlightColor = null, Color splashColor = null, float?highlightElevation = null, BorderSide borderSide = null, Color disabledBorderColor = null, Color highlightedBorderColor = null, EdgeInsets padding = null, ShapeBorder shape = null, Clip clipBehavior = Clip.none, Widget child = null ) : base( key: key, onPressed: onPressed, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, highlightColor: highlightColor, splashColor: splashColor, highlightElevation: highlightElevation, padding: padding, shape: shape, clipBehavior: clipBehavior, child: child ) { D.assert(highlightElevation == null || highlightElevation >= 0.0f); this.highlightedBorderColor = highlightedBorderColor; this.disabledBorderColor = disabledBorderColor; this.borderSide = borderSide; }
public ButtonBarThemeData copyWith( MainAxisAlignment?alignment, MainAxisSize?mainAxisSize, ButtonTextTheme?buttonTextTheme, float?buttonMinWidth, float?buttonHeight, EdgeInsetsGeometry buttonPadding, bool?buttonAlignedDropdown, ButtonBarLayoutBehavior?layoutBehavior, VerticalDirection?overflowDirection ) { return(new ButtonBarThemeData( alignment: alignment ?? this.alignment, mainAxisSize: mainAxisSize ?? this.mainAxisSize, buttonTextTheme: buttonTextTheme ?? this.buttonTextTheme, buttonMinWidth: buttonMinWidth ?? this.buttonMinWidth, buttonHeight: buttonHeight ?? this.buttonHeight, buttonPadding: buttonPadding ?? this.buttonPadding, buttonAlignedDropdown: buttonAlignedDropdown ?? this.buttonAlignedDropdown, layoutBehavior: layoutBehavior ?? this.layoutBehavior, overflowDirection: overflowDirection ?? this.overflowDirection )); }
public ButtonBarThemeData( MainAxisAlignment?alignment = null, MainAxisSize?mainAxisSize = null, ButtonTextTheme?buttonTextTheme = null, float?buttonMinWidth = null, float?buttonHeight = null, EdgeInsetsGeometry buttonPadding = null, bool?buttonAlignedDropdown = null, ButtonBarLayoutBehavior?layoutBehavior = null, VerticalDirection?overflowDirection = null ) { D.assert(buttonMinWidth == null || buttonMinWidth >= 0.0f); D.assert(buttonHeight == null || buttonHeight >= 0.0f); this.alignment = alignment; this.mainAxisSize = mainAxisSize; this.buttonTextTheme = buttonTextTheme; this.buttonMinWidth = buttonMinWidth; this.buttonHeight = buttonHeight; this.buttonPadding = buttonPadding; this.buttonAlignedDropdown = buttonAlignedDropdown; this.layoutBehavior = layoutBehavior; this.overflowDirection = overflowDirection; }
public RaisedButton( Key key = null, VoidCallback onPressed = null, VoidCallback onLongPress = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, float?elevation = null, float?focusElevation = null, float?hoverElevation = null, float?highlightElevation = null, float?disabledElevation = null, EdgeInsetsGeometry padding = null, VisualDensity visualDensity = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, FocusNode focusNode = null, bool autofocus = false, MaterialTapTargetSize?materialTapTargetSize = null, TimeSpan?animationDuration = null, Widget child = null ) : base( key: key, onPressed: onPressed, onLongPress: onLongPress, onHighlightChanged: onHighlightChanged, textTheme: textTheme, textColor: textColor, disabledTextColor: disabledTextColor, color: color, disabledColor: disabledColor, focusColor: focusColor, hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, colorBrightness: colorBrightness, elevation: elevation, focusElevation: focusElevation, hoverElevation: hoverElevation, highlightElevation: highlightElevation, disabledElevation: disabledElevation, padding: padding, visualDensity: visualDensity, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, materialTapTargetSize: materialTapTargetSize, animationDuration: animationDuration, child: child) { D.assert(elevation == null || elevation >= 0.0); D.assert(focusElevation == null || focusElevation >= 0.0); D.assert(hoverElevation == null || hoverElevation >= 0.0); D.assert(highlightElevation == null || highlightElevation >= 0.0); D.assert(disabledElevation == null || disabledElevation >= 0.0); D.assert(clipBehavior != null); }
public MaterialButton( Key key = null, VoidCallback onPressed = null, VoidCallback onLongPress = null, ValueChanged <bool> onHighlightChanged = null, ButtonTextTheme?textTheme = null, Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color focusColor = null, Color hoverColor = null, Color highlightColor = null, Color splashColor = null, Brightness?colorBrightness = null, float?elevation = null, float?focusElevation = null, float?hoverElevation = null, float?highlightElevation = null, float?disabledElevation = null, EdgeInsetsGeometry padding = null, VisualDensity visualDensity = null, ShapeBorder shape = null, Clip?clipBehavior = Clip.none, FocusNode focusNode = null, bool?autofocus = false, MaterialTapTargetSize?materialTapTargetSize = null, TimeSpan?animationDuration = null, float?minWidth = null, float?height = null, bool?enableFeedback = true, Widget child = null ) : base(key: key) { D.assert(clipBehavior != null); D.assert(autofocus != null); D.assert(elevation == null || elevation >= 0.0f); D.assert(focusElevation == null || focusElevation >= 0.0f); D.assert(hoverElevation == null || hoverElevation >= 0.0f); D.assert(highlightElevation == null || highlightElevation >= 0.0f); D.assert(disabledElevation == null || disabledElevation >= 0.0f); this.onPressed = onPressed; this.onLongPress = onLongPress; this.onHighlightChanged = onHighlightChanged; this.textTheme = textTheme; this.textColor = textColor; this.disabledTextColor = disabledTextColor; this.color = color; this.disabledColor = disabledColor; this.focusColor = focusColor; this.hoverColor = hoverColor; this.highlightColor = highlightColor; this.splashColor = splashColor; this.colorBrightness = colorBrightness; this.elevation = elevation; this.focusElevation = focusElevation; this.hoverElevation = hoverElevation; this.highlightElevation = highlightElevation; this.disabledElevation = disabledElevation; this.padding = padding; this.visualDensity = visualDensity; this.shape = shape; this.clipBehavior = clipBehavior; this.focusNode = focusNode; this.materialTapTargetSize = materialTapTargetSize; this.animationDuration = animationDuration; this.minWidth = minWidth; this.height = height; this.enableFeedback = enableFeedback; this.child = child; this.autofocus = autofocus; }