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

    Class Material

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    Material
    Inherited Members
    StatefulWidget.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 Material : StatefulWidget

    Constructors

    Material(Key, MaterialType, Single, Color, Color, TextStyle, BorderRadius, ShapeBorder, Boolean, Clip, Nullable<TimeSpan>, Widget)

    Declaration
    public Material(Key key = null, MaterialType type = MaterialType.canvas, float elevation = 0F, Color color = null, Color shadowColor = null, TextStyle textStyle = null, BorderRadius borderRadius = null, ShapeBorder shape = null, bool borderOnForeground = true, Clip clipBehavior = Clip.none, TimeSpan? animationDuration = default(TimeSpan? ), Widget child = null)
    Parameters
    Type Name Description
    Key key
    MaterialType type
    System.Single elevation
    Color color
    Color shadowColor
    TextStyle textStyle
    BorderRadius borderRadius
    ShapeBorder shape
    System.Boolean borderOnForeground
    Clip clipBehavior
    System.Nullable<System.TimeSpan> animationDuration
    Widget child

    Fields

    animationDuration

    Declaration
    public readonly TimeSpan animationDuration
    Field Value
    Type Description
    System.TimeSpan

    borderOnForeground

    Declaration
    public readonly bool borderOnForeground
    Field Value
    Type Description
    System.Boolean

    borderRadius

    Declaration
    public readonly BorderRadius borderRadius
    Field Value
    Type Description
    BorderRadius

    child

    Declaration
    public readonly Widget child
    Field Value
    Type Description
    Widget

    clipBehavior

    Declaration
    public readonly Clip clipBehavior
    Field Value
    Type Description
    Clip

    color

    Declaration
    public readonly Color color
    Field Value
    Type Description
    Color

    defaultSplashRadius

    Declaration
    public const float defaultSplashRadius = 35F
    Field Value
    Type Description
    System.Single

    elevation

    Declaration
    public readonly float elevation
    Field Value
    Type Description
    System.Single

    shadowColor

    Declaration
    public readonly Color shadowColor
    Field Value
    Type Description
    Color

    shape

    Declaration
    public readonly ShapeBorder shape
    Field Value
    Type Description
    ShapeBorder

    textStyle

    Declaration
    public readonly TextStyle textStyle
    Field Value
    Type Description
    TextStyle

    type

    Declaration
    public readonly MaterialType type
    Field Value
    Type Description
    MaterialType

    Methods

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)

    of(BuildContext)

    Declaration
    public static MaterialInkController of(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    MaterialInkController
    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