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

    Class Theme

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    Theme
    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 Theme : StatelessWidget

    Constructors

    Theme(Key, ThemeData, Boolean, Widget)

    Declaration
    public Theme(Key key = null, ThemeData data = null, bool isMaterialAppTheme = false, Widget child = null)
    Parameters
    Type Name Description
    Key key
    ThemeData data
    System.Boolean isMaterialAppTheme
    Widget child

    Fields

    data

    Declaration
    public readonly ThemeData data
    Field Value
    Type Description
    ThemeData

    isMaterialAppTheme

    Declaration
    public readonly bool isMaterialAppTheme
    Field 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)

    of(BuildContext, Boolean)

    Declaration
    public static ThemeData of(BuildContext context, bool shadowThemeOnly = false)
    Parameters
    Type Name Description
    BuildContext context
    System.Boolean shadowThemeOnly
    Returns
    Type Description
    ThemeData
    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