ExtendedWidgetsApp class

ExtendedWidgetsApp

Inheritance
Available Extensions

Constructors

ExtendedWidgetsApp({Key? key, Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, String title = '', ThemeMode themeMode = ThemeMode.system, RoutePushStyle pushStyle = RoutePushStyle.material, Locale? locale = const Locale('zh'), Iterable<LocalizationsDelegate> localizationsDelegates = const <LocalizationsDelegate<dynamic>>[DefaultCupertinoLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate], Iterable<Locale> supportedLocales = const <Locale>[Locale('zh', 'CH'), Locale('en', 'US')], bool debugShowMaterialGrid = false, bool debugShowWidgetInspector = false, bool debugShowCheckedModeBanner = false, bool showPerformanceOverlay = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, bool showSemanticsDebugger = false, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], Color? color, GlobalKey<NavigatorState>? navigatorKey, Widget? home, String? initialRoute, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, TransitionBuilder? builder, GenerateAppTitle? onGenerateTitle, ThemeData? theme, ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, Map<LogicalKeySet, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, InitialRouteListFactory? onGenerateInitialRoutes, InspectorSelectButtonBuilder? inspectorSelectButtonBuilder, CupertinoThemeData? cupertinoTheme, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, ScrollBehavior? scrollBehavior, String? restorationScopeId, TextStyle? textStyle, bool useInheritedMediaQuery = false})
const

Properties

actions Map<Type, Action<Intent>>?
final
builder TransitionBuilder?
建造者
final
checkerboardOffscreenLayers bool
final
checkerboardRasterCacheImages bool
棋盘格光栅缓存图像
final
color Color?
颜色
final
cupertinoApp CupertinoApp
no setter
cupertinoTheme CupertinoThemeData?
Cupertino主题
final
darkTheme ThemeData?
final
debugShowCheckedModeBanner bool
调试显示检查模式横幅
final
debugShowMaterialGrid bool
final
debugShowWidgetInspector bool
final
hashCode int
The hash code for this object.
no setterinherited
highContrastDarkTheme ThemeData?
final
highContrastTheme ThemeData?
final
home Widget?
主页
final
initialRoute String?
初始路由
final
inspectorSelectButtonBuilder InspectorSelectButtonBuilder?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
地点
final
localeListResolutionCallback LocaleListResolutionCallback?
区域分辨回调
final
localeResolutionCallback LocaleResolutionCallback?
final
localizationsDelegates Iterable<LocalizationsDelegate>
本地化委托
final
materialApp MaterialApp
no setter
导航键
final
导航观察器
final
onGenerateInitialRoutes InitialRouteListFactory?
final
onGenerateRoute RouteFactory?
生成路由
final
onGenerateTitle GenerateAppTitle?
生成标题
final
onUnknownRoute RouteFactory?
未知路由
final
pushStyle RoutePushStyle
风格
final
restorationScopeId String?
final
routes Map<String, WidgetBuilder>
路由
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
final
scrollBehavior ScrollBehavior?
final
shortcuts Map<LogicalKeySet, Intent>?
final
showPerformanceOverlay bool
显示性能叠加
final
showSemanticsDebugger bool
显示语义调试器
final
supportedLocales Iterable<Locale>
支持区域
final
textStyle TextStyle?
final
theme ThemeData?
Material主题
final
themeMode ThemeMode
final
title String
标题
final
useInheritedMediaQuery bool
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited