EmergentApp constructor
const
EmergentApp({
- Key? key,
- String title = '',
- Color? color,
- String? initialRoute,
- Map<
String, WidgetBuilder> routes = const {}, - Widget? home,
- bool debugShowCheckedModeBanner = true,
- RouteFactory? onGenerateRoute,
- GenerateAppTitle? onGenerateTitle,
- InitialRouteListFactory? onGenerateInitialRoutes,
- RouteFactory? onUnknownRoute,
- EmergentThemeData theme = emergentDefaultTheme,
- EmergentThemeData darkTheme = emergentDefaultDarkTheme,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - ThemeMode themeMode = ThemeMode.system,
- ThemeData? materialDarkTheme,
- ThemeData? materialTheme,
- Widget builder()?,
- Locale? localeResolutionCallback()?,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- LocaleListResolutionCallback? localeListResolutionCallback,
- bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowMaterialGrid = false,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> >
Implementation
const EmergentApp({
Key? key,
this.title = '',
this.color,
this.initialRoute,
this.routes = const {},
this.home,
this.debugShowCheckedModeBanner = true,
this.navigatorKey,
this.navigatorObservers = const [],
this.onGenerateRoute,
this.onGenerateTitle,
this.onGenerateInitialRoutes,
this.onUnknownRoute,
this.theme = emergentDefaultTheme,
this.darkTheme = emergentDefaultDarkTheme,
this.locale,
this.localizationsDelegates,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
this.themeMode = ThemeMode.system,
this.materialDarkTheme,
this.materialTheme,
this.builder,
this.localeResolutionCallback,
this.highContrastTheme,
this.highContrastDarkTheme,
this.localeListResolutionCallback,
this.showPerformanceOverlay = false,
this.checkerboardRasterCacheImages = false,
this.checkerboardOffscreenLayers = false,
this.showSemanticsDebugger = false,
this.debugShowMaterialGrid = false,
this.shortcuts,
this.actions,
}) : super(key: key);