Inheritance
System.Object
MaterialApp
public class MaterialApp : StatefulWidget
Constructors
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
Fields
Declaration
public readonly TransitionBuilder builder
Field Value
Declaration
public readonly Color color
Field Value
Declaration
public readonly ThemeData darkTheme
Field Value
Declaration
public readonly Widget home
Field Value
Declaration
public readonly string initialRoute
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly Locale locale
Field Value
Declaration
public readonly LocaleListResolutionCallback localeListResolutionCallback
Field Value
Declaration
public readonly LocaleResolutionCallback localeResolutionCallback
Field Value
Declaration
public readonly List<LocalizationsDelegate<MaterialLocalizations>> localizationsDelegates
Field Value
Declaration
public readonly GlobalKey<NavigatorState> navigatorKey
Field Value
Declaration
public readonly List<NavigatorObserver> navigatorObservers
Field Value
Declaration
public readonly RouteFactory onGenerateRoute
Field Value
Declaration
public readonly RouteFactory onUnknownRoute
Field Value
Declaration
public readonly Dictionary<string, WidgetBuilder> routes
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, WidgetBuilder> |
|
Declaration
public readonly bool showPerformanceOverlay
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly List<Locale> supportedLocales
Field Value
Type |
Description |
System.Collections.Generic.List<Locale> |
|
Declaration
public readonly ThemeData theme
Field Value
Declaration
public readonly string title
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public override State createState()
Returns
Overrides