Inheritance
System.Object
ButtonThemeData
public class ButtonThemeData : Diagnosticable, IEquatable<ButtonThemeData>
Constructors
ButtonThemeData(ButtonTextTheme, Single, Single, EdgeInsets, ShapeBorder, ButtonBarLayoutBehavior, Boolean, Color, Color, Color, Color, ColorScheme, Nullable<MaterialTapTargetSize>)
Declaration
public ButtonThemeData(ButtonTextTheme textTheme = ButtonTextTheme.normal, float minWidth = 88F, float height = 36F, EdgeInsets padding = null, ShapeBorder shape = null, ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded, bool alignedDropdown = false, Color buttonColor = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, ColorScheme colorScheme = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ))
Parameters
Fields
Declaration
public readonly bool alignedDropdown
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly ColorScheme colorScheme
Field Value
Declaration
public readonly float height
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly ButtonBarLayoutBehavior layoutBehavior
Field Value
Declaration
public readonly float minWidth
Field Value
Type |
Description |
System.Single |
|
textTheme
Declaration
public readonly ButtonTextTheme textTheme
Field Value
Properties
Declaration
public BoxConstraints constraints { get; }
Property Value
Declaration
public EdgeInsets padding { get; }
Property Value
Declaration
public ShapeBorder shape { get; }
Property Value
Methods
copyWith(Nullable<ButtonTextTheme>, Nullable<ButtonBarLayoutBehavior>, Nullable<Single>, Nullable<Single>, EdgeInsets, ShapeBorder, Nullable<Boolean>, Color, Color, Color, Color, ColorScheme, Nullable<MaterialTapTargetSize>)
Declaration
public ButtonThemeData copyWith(ButtonTextTheme? textTheme = default(ButtonTextTheme? ), ButtonBarLayoutBehavior? layoutBehavior = default(ButtonBarLayoutBehavior? ), float? minWidth = default(float? ), float? height = default(float? ), EdgeInsets padding = null, ShapeBorder shape = null, bool? alignedDropdown = default(bool? ), Color buttonColor = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, ColorScheme colorScheme = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ))
Parameters
Returns
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(ButtonThemeData other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public TimeSpan getAnimationDuration(MaterialButton button)
Parameters
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public Brightness getBrightness(MaterialButton button)
Parameters
Returns
Declaration
public BoxConstraints getConstraints(MaterialButton button)
Parameters
Returns
Declaration
public float getDisabledElevation(MaterialButton button)
Parameters
Returns
Type |
Description |
System.Single |
|
getDisabledTextColor(MaterialButton)
Declaration
public Color getDisabledTextColor(MaterialButton button)
Parameters
Returns
Declaration
public float getElevation(MaterialButton button)
Parameters
Returns
Type |
Description |
System.Single |
|
Declaration
public Color getFillColor(MaterialButton button)
Parameters
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public Color getHighlightColor(MaterialButton button)
Parameters
Returns
Declaration
public float getHighlightElevation(MaterialButton button)
Parameters
Returns
Type |
Description |
System.Single |
|
Declaration
public MaterialTapTargetSize getMaterialTapTargetSize(MaterialButton button)
Parameters
Returns
Declaration
public EdgeInsets getPadding(MaterialButton button)
Parameters
Returns
Declaration
public ShapeBorder getShape(MaterialButton button)
Parameters
Returns
Declaration
public Color getSplashColor(MaterialButton button)
Parameters
Returns
getTextColor(MaterialButton)
Declaration
public Color getTextColor(MaterialButton button)
Parameters
Returns
getTextTheme(MaterialButton)
Declaration
public ButtonTextTheme getTextTheme(MaterialButton button)
Parameters
Returns
Operators
Declaration
public static bool operator ==(ButtonThemeData left, ButtonThemeData right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(ButtonThemeData left, ButtonThemeData right)
Parameters
Returns
Type |
Description |
System.Boolean |
|