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

    Class MaterialApp

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    MaterialApp
    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 MaterialApp : StatefulWidget

    Constructors

    MaterialApp(Key, GlobalKey<NavigatorState>, Widget, Dictionary<String, WidgetBuilder>, String, RouteFactory, RouteFactory, List<NavigatorObserver>, TransitionBuilder, String, Color, ThemeData, ThemeData, Locale, List<LocalizationsDelegate<MaterialLocalizations>>, LocaleListResolutionCallback, LocaleResolutionCallback, List<Locale>, Boolean)

    Declaration
    public MaterialApp(Key key = null, GlobalKey<NavigatorState> navigatorKey = null, Widget home = null, Dictionary<string, WidgetBuilder> routes = null, string initialRoute = null, RouteFactory onGenerateRoute = null, RouteFactory onUnknownRoute = null, List<NavigatorObserver> navigatorObservers = null, TransitionBuilder builder = null, string title = "", Color color = null, ThemeData theme = null, ThemeData darkTheme = null, Locale locale = null, List<LocalizationsDelegate<MaterialLocalizations>> localizationsDelegates = null, LocaleListResolutionCallback localeListResolutionCallback = null, LocaleResolutionCallback localeResolutionCallback = null, List<Locale> supportedLocales = null, bool showPerformanceOverlay = false)
    Parameters
    Type Name Description
    Key key
    GlobalKey<NavigatorState> navigatorKey
    Widget home
    Dictionary<String, WidgetBuilder> routes
    String initialRoute
    RouteFactory onGenerateRoute
    RouteFactory onUnknownRoute
    List<NavigatorObserver> navigatorObservers
    TransitionBuilder builder
    String title
    Color color
    ThemeData theme
    ThemeData darkTheme
    Locale locale
    List<LocalizationsDelegate<MaterialLocalizations>> localizationsDelegates
    LocaleListResolutionCallback localeListResolutionCallback
    LocaleResolutionCallback localeResolutionCallback
    List<Locale> supportedLocales
    Boolean showPerformanceOverlay

    Fields

    builder

    Declaration
    public readonly TransitionBuilder builder
    Field Value
    Type Description
    TransitionBuilder

    color

    Declaration
    public readonly Color color
    Field Value
    Type Description
    Color

    darkTheme

    Declaration
    public readonly ThemeData darkTheme
    Field Value
    Type Description
    ThemeData

    home

    Declaration
    public readonly Widget home
    Field Value
    Type Description
    Widget

    initialRoute

    Declaration
    public readonly string initialRoute
    Field Value
    Type Description
    String

    locale

    Declaration
    public readonly Locale locale
    Field Value
    Type Description
    Locale

    localeListResolutionCallback

    Declaration
    public readonly LocaleListResolutionCallback localeListResolutionCallback
    Field Value
    Type Description
    LocaleListResolutionCallback

    localeResolutionCallback

    Declaration
    public readonly LocaleResolutionCallback localeResolutionCallback
    Field Value
    Type Description
    LocaleResolutionCallback

    localizationsDelegates

    Declaration
    public readonly List<LocalizationsDelegate<MaterialLocalizations>> localizationsDelegates
    Field Value
    Type Description
    List<LocalizationsDelegate<MaterialLocalizations>>

    navigatorKey

    Declaration
    public readonly GlobalKey<NavigatorState> navigatorKey
    Field Value
    Type Description
    GlobalKey<NavigatorState>

    navigatorObservers

    Declaration
    public readonly List<NavigatorObserver> navigatorObservers
    Field Value
    Type Description
    List<NavigatorObserver>

    onGenerateRoute

    Declaration
    public readonly RouteFactory onGenerateRoute
    Field Value
    Type Description
    RouteFactory

    onUnknownRoute

    Declaration
    public readonly RouteFactory onUnknownRoute
    Field Value
    Type Description
    RouteFactory

    routes

    Declaration
    public readonly Dictionary<string, WidgetBuilder> routes
    Field Value
    Type Description
    Dictionary<String, WidgetBuilder>

    showPerformanceOverlay

    Declaration
    public readonly bool showPerformanceOverlay
    Field Value
    Type Description
    Boolean

    supportedLocales

    Declaration
    public readonly List<Locale> supportedLocales
    Field Value
    Type Description
    List<Locale>

    theme

    Declaration
    public readonly ThemeData theme
    Field Value
    Type Description
    ThemeData

    title

    Declaration
    public readonly string title
    Field Value
    Type Description
    String

    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