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

    Class MaterialButton

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    MaterialButton
    FlatButton
    OutlineButton
    RaisedButton
    Inherited Members
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    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 MaterialButton : StatelessWidget

    Constructors

    MaterialButton(Key, VoidCallback, ValueChanged<Boolean>, Nullable<ButtonTextTheme>, Color, Color, Color, Color, Color, Color, Nullable<Brightness>, Nullable<Single>, Nullable<Single>, Nullable<Single>, EdgeInsets, ShapeBorder, Nullable<Clip>, Nullable<MaterialTapTargetSize>, Nullable<TimeSpan>, Nullable<Single>, Nullable<Single>, Widget)

    Declaration
    public MaterialButton(Key key = null, VoidCallback onPressed = null, ValueChanged<bool> onHighlightChanged = null, ButtonTextTheme? textTheme = default(ButtonTextTheme? ), Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness? colorBrightness = default(Brightness? ), float? elevation = default(float? ), float? highlightElevation = default(float? ), float? disabledElevation = default(float? ), EdgeInsets padding = null, ShapeBorder shape = null, Clip? clipBehavior, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), TimeSpan? animationDuration = default(TimeSpan? ), float? minWidth = default(float? ), float? height = default(float? ), Widget child = null)
    Parameters
    Type Name Description
    Key key
    VoidCallback onPressed
    ValueChanged<System.Boolean> onHighlightChanged
    System.Nullable<ButtonTextTheme> textTheme
    Color textColor
    Color disabledTextColor
    Color color
    Color disabledColor
    Color highlightColor
    Color splashColor
    System.Nullable<Brightness> colorBrightness
    System.Nullable<System.Single> elevation
    System.Nullable<System.Single> highlightElevation
    System.Nullable<System.Single> disabledElevation
    EdgeInsets padding
    ShapeBorder shape
    System.Nullable<Clip> clipBehavior
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    System.Nullable<System.TimeSpan> animationDuration
    System.Nullable<System.Single> minWidth
    System.Nullable<System.Single> height
    Widget child

    Fields

    animationDuration

    Declaration
    public readonly TimeSpan? animationDuration
    Field Value
    Type Description
    System.Nullable<System.TimeSpan>

    child

    Declaration
    public readonly Widget child
    Field Value
    Type Description
    Widget

    clipBehavior

    Declaration
    public readonly Clip? clipBehavior
    Field Value
    Type Description
    System.Nullable<Clip>

    color

    Declaration
    public readonly Color color
    Field Value
    Type Description
    Color

    colorBrightness

    Declaration
    public readonly Brightness? colorBrightness
    Field Value
    Type Description
    System.Nullable<Brightness>

    disabledColor

    Declaration
    public readonly Color disabledColor
    Field Value
    Type Description
    Color

    disabledElevation

    Declaration
    public readonly float? disabledElevation
    Field Value
    Type Description
    System.Nullable<System.Single>

    disabledTextColor

    Declaration
    public readonly Color disabledTextColor
    Field Value
    Type Description
    Color

    elevation

    Declaration
    public readonly float? elevation
    Field Value
    Type Description
    System.Nullable<System.Single>

    height

    Declaration
    public readonly float? height
    Field Value
    Type Description
    System.Nullable<System.Single>

    highlightColor

    Declaration
    public readonly Color highlightColor
    Field Value
    Type Description
    Color

    highlightElevation

    Declaration
    public readonly float? highlightElevation
    Field Value
    Type Description
    System.Nullable<System.Single>

    materialTapTargetSize

    Declaration
    public readonly MaterialTapTargetSize? materialTapTargetSize
    Field Value
    Type Description
    System.Nullable<MaterialTapTargetSize>

    minWidth

    Declaration
    public readonly float? minWidth
    Field Value
    Type Description
    System.Nullable<System.Single>

    onHighlightChanged

    Declaration
    public readonly ValueChanged<bool> onHighlightChanged
    Field Value
    Type Description
    ValueChanged<System.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

    textColor

    Declaration
    public readonly Color textColor
    Field Value
    Type Description
    Color

    textTheme

    Declaration
    public readonly ButtonTextTheme? textTheme
    Field Value
    Type Description
    System.Nullable<ButtonTextTheme>

    Properties

    enabled

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

    Methods

    build(BuildContext)

    Declaration
    public override Widget build(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    Widget
    Overrides
    StatelessWidget.build(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    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