Class ButtonTheme | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ButtonTheme

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    ProxyWidget
    InheritedWidget
    ButtonTheme
    Inherited Members
    InheritedWidget.createElement()
    ProxyWidget.child
    Widget.key
    Widget.toStringShort()
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class ButtonTheme : InheritedWidget

    Constructors

    ButtonTheme(Key, ButtonTextTheme, ButtonBarLayoutBehavior, Single, Single, EdgeInsets, ShapeBorder, Boolean, Color, Color, Color, Color, ColorScheme, Nullable<MaterialTapTargetSize>, Widget)

    Declaration
    public ButtonTheme(Key key = null, ButtonTextTheme textTheme = ButtonTextTheme.normal, ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded, float minWidth = 88F, float height = 36F, EdgeInsets padding = null, ShapeBorder shape = null, bool alignedDropdown = false, Color buttonColor = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, ColorScheme colorScheme = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), Widget child = null)
    Parameters
    Type Name Description
    Key key
    ButtonTextTheme textTheme
    ButtonBarLayoutBehavior layoutBehavior
    System.Single minWidth
    System.Single height
    EdgeInsets padding
    ShapeBorder shape
    System.Boolean alignedDropdown
    Color buttonColor
    Color disabledColor
    Color highlightColor
    Color splashColor
    ColorScheme colorScheme
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    Widget child

    ButtonTheme(Key, ButtonThemeData, Widget)

    Declaration
    public ButtonTheme(Key key = null, ButtonThemeData data = null, Widget child = null)
    Parameters
    Type Name Description
    Key key
    ButtonThemeData data
    Widget child

    Fields

    data

    Declaration
    public readonly ButtonThemeData data
    Field Value
    Type Description
    ButtonThemeData

    Methods

    bar(Key, ButtonTextTheme, Single, Single, EdgeInsets, ShapeBorder, Boolean, Color, Color, Color, Color, ColorScheme, Widget, ButtonBarLayoutBehavior)

    Declaration
    public static ButtonTheme bar(Key key = null, ButtonTextTheme textTheme = ButtonTextTheme.accent, float minWidth = 64F, float height = 36F, EdgeInsets padding = null, ShapeBorder shape = null, bool alignedDropdown = false, Color buttonColor = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, ColorScheme colorScheme = null, Widget child = null, ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded)
    Parameters
    Type Name Description
    Key key
    ButtonTextTheme textTheme
    System.Single minWidth
    System.Single height
    EdgeInsets padding
    ShapeBorder shape
    System.Boolean alignedDropdown
    Color buttonColor
    Color disabledColor
    Color highlightColor
    Color splashColor
    ColorScheme colorScheme
    Widget child
    ButtonBarLayoutBehavior layoutBehavior
    Returns
    Type Description
    ButtonTheme

    fromButtonThemeData(Key, ButtonThemeData, Widget)

    Declaration
    public static ButtonTheme fromButtonThemeData(Key key = null, ButtonThemeData data = null, Widget child = null)
    Parameters
    Type Name Description
    Key key
    ButtonThemeData data
    Widget child
    Returns
    Type Description
    ButtonTheme

    of(BuildContext)

    Declaration
    public static ButtonThemeData of(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    ButtonThemeData

    updateShouldNotify(InheritedWidget)

    Declaration
    public override bool updateShouldNotify(InheritedWidget oldWidget)
    Parameters
    Type Name Description
    InheritedWidget oldWidget
    Returns
    Type Description
    System.Boolean
    Overrides
    InheritedWidget.updateShouldNotify(InheritedWidget)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023