Class RawMaterialButton | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class RawMaterialButton

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    RawMaterialButton
    Inherited Members
    StatefulWidget.createElement()
    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 RawMaterialButton : StatefulWidget

    Constructors

    RawMaterialButton(Key, VoidCallback, ValueChanged<Boolean>, TextStyle, Color, Color, Color, Single, Single, Single, EdgeInsets, BoxConstraints, ShapeBorder, Nullable<TimeSpan>, Clip, Nullable<MaterialTapTargetSize>, Widget)

    Declaration
    public RawMaterialButton(Key key = null, VoidCallback onPressed = null, ValueChanged<bool> onHighlightChanged = null, TextStyle textStyle = null, Color fillColor = null, Color highlightColor = null, Color splashColor = null, float elevation = 2F, float highlightElevation = 8F, float disabledElevation = 0F, EdgeInsets padding = null, BoxConstraints constraints = null, ShapeBorder shape = null, TimeSpan? animationDuration = default(TimeSpan? ), Clip clipBehavior = Clip.none, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), Widget child = null)
    Parameters
    Type Name Description
    Key key
    VoidCallback onPressed
    ValueChanged<Boolean> onHighlightChanged
    TextStyle textStyle
    Color fillColor
    Color highlightColor
    Color splashColor
    Single elevation
    Single highlightElevation
    Single disabledElevation
    EdgeInsets padding
    BoxConstraints constraints
    ShapeBorder shape
    Nullable<TimeSpan> animationDuration
    Clip clipBehavior
    Nullable<MaterialTapTargetSize> materialTapTargetSize
    Widget child

    Fields

    animationDuration

    Declaration
    public readonly TimeSpan animationDuration
    Field Value
    Type Description
    TimeSpan

    child

    Declaration
    public readonly Widget child
    Field Value
    Type Description
    Widget

    clipBehavior

    Declaration
    public readonly Clip clipBehavior
    Field Value
    Type Description
    Clip

    constraints

    Declaration
    public readonly BoxConstraints constraints
    Field Value
    Type Description
    BoxConstraints

    disabledElevation

    Declaration
    public readonly float disabledElevation
    Field Value
    Type Description
    Single

    elevation

    Declaration
    public readonly float elevation
    Field Value
    Type Description
    Single

    fillColor

    Declaration
    public readonly Color fillColor
    Field Value
    Type Description
    Color

    highlightColor

    Declaration
    public readonly Color highlightColor
    Field Value
    Type Description
    Color

    highlightElevation

    Declaration
    public readonly float highlightElevation
    Field Value
    Type Description
    Single

    materialTapTargetSize

    Declaration
    public readonly MaterialTapTargetSize materialTapTargetSize
    Field Value
    Type Description
    MaterialTapTargetSize

    onHighlightChanged

    Declaration
    public readonly ValueChanged<bool> onHighlightChanged
    Field Value
    Type Description
    ValueChanged<Boolean>

    onPressed

    Declaration
    public readonly VoidCallback onPressed
    Field Value
    Type Description
    VoidCallback

    padding

    Declaration
    public readonly EdgeInsets padding
    Field Value
    Type Description
    EdgeInsets

    shape

    Declaration
    public readonly ShapeBorder shape
    Field Value
    Type Description
    ShapeBorder

    splashColor

    Declaration
    public readonly Color splashColor
    Field Value
    Type Description
    Color

    textStyle

    Declaration
    public readonly TextStyle textStyle
    Field Value
    Type Description
    TextStyle

    Properties

    enabled

    Declaration
    public bool enabled { get; }
    Property Value
    Type Description
    Boolean

    Methods

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()
    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