ExtendedWidgetsApp constructor
const
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,
- Color? color,
- 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< ? actions,Intent> > - InitialRouteListFactory? onGenerateInitialRoutes,
- InspectorSelectButtonBuilder? inspectorSelectButtonBuilder,
- CupertinoThemeData? cupertinoTheme,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - ScrollBehavior? scrollBehavior,
- String? restorationScopeId,
- TextStyle? textStyle,
- bool useInheritedMediaQuery = false,
Implementation
const ExtendedWidgetsApp({
super.key,
this.routes = const <String, WidgetBuilder>{},
this.title = '',
this.themeMode = ThemeMode.system,
this.pushStyle = RoutePushStyle.material,
this.locale = const Locale('zh'),
this.localizationsDelegates = const <LocalizationsDelegate<dynamic>>[
DefaultCupertinoLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
this.supportedLocales = const <Locale>[
Locale('zh', 'CH'),
Locale('en', 'US')
],
this.debugShowMaterialGrid = false,
this.debugShowWidgetInspector = false,
this.debugShowCheckedModeBanner = false,
this.showPerformanceOverlay = false,
this.checkerboardRasterCacheImages = false,
this.checkerboardOffscreenLayers = false,
this.showSemanticsDebugger = false,
this.navigatorObservers = const <NavigatorObserver>[],
this.color,
this.navigatorKey,
this.home,
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.builder,
this.onGenerateTitle,
this.theme,
this.darkTheme,
this.highContrastTheme,
this.highContrastDarkTheme,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.shortcuts,
this.actions,
this.onGenerateInitialRoutes,
this.inspectorSelectButtonBuilder,
this.cupertinoTheme,
this.scaffoldMessengerKey,
this.scrollBehavior,
this.restorationScopeId,
this.textStyle,
this.useInheritedMediaQuery = false,
});