FlutterAppPlus constructor

const FlutterAppPlus({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. Widget? home,
  4. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  5. String? initialRoute,
  6. RouteFactory? onGenerateRoute,
  7. InitialRouteListFactory? onGenerateInitialRoutes,
  8. RouteFactory? onUnknownRoute,
  9. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  10. TransitionBuilder? builder,
  11. String title = '',
  12. GenerateAppTitle? onGenerateTitle,
  13. Color? color,
  14. ThemeData? theme,
  15. ThemeData? darkTheme,
  16. ThemeData? highContrastTheme,
  17. ThemeData? highContrastDarkTheme,
  18. ThemeMode themeMode = ThemeMode.system,
  19. Locale? locale,
  20. Iterable<LocalizationsDelegate>? localizationsDelegates,
  21. LocaleListResolutionCallback? localeListResolutionCallback,
  22. LocaleResolutionCallback? localeResolutionCallback,
  23. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  24. bool debugShowMaterialGrid = false,
  25. bool showPerformanceOverlay = false,
  26. bool checkerboardRasterCacheImages = false,
  27. bool checkerboardOffscreenLayers = false,
  28. bool showSemanticsDebugger = false,
  29. bool debugShowCheckedModeBanner = true,
  30. Map<LogicalKeySet, Intent>? shortcuts,
  31. Map<Type, Action<Intent>>? actions,
})

Implementation

const FlutterAppPlus({
  Key? key,
  this.navigatorKey,
  this.home,
  this.routes = const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.theme,
  this.darkTheme,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.themeMode = ThemeMode.system,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
})  :
      routeInformationProvider = null,
      routeInformationParser = null,
      routerDelegate = null,
      backButtonDispatcher = null,
      super(key: key);