FlowerApp constructor

const FlowerApp({
  1. UIConfig? uiConfig,
  2. Key? key,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  5. Widget? home,
  6. Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{},
  7. String? initialRoute,
  8. RouteFactory? onGenerateRoute,
  9. InitialRouteListFactory? onGenerateInitialRoutes,
  10. RouteFactory? onUnknownRoute,
  11. bool useInheritedMediaQuery = false,
  12. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  13. TransitionBuilder? builder,
  14. TextDirection? textDirection,
  15. String title = '',
  16. GenerateAppTitle? onGenerateTitle,
  17. Locale? locale,
  18. Locale? fallbackLocale,
  19. Iterable<LocalizationsDelegate>? localizationsDelegates,
  20. LocaleListResolutionCallback? localeListResolutionCallback,
  21. LocaleResolutionCallback? localeResolutionCallback,
  22. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  23. bool debugShowMaterialGrid = false,
  24. bool showPerformanceOverlay = false,
  25. bool checkerboardRasterCacheImages = false,
  26. bool checkerboardOffscreenLayers = false,
  27. bool showSemanticsDebugger = false,
  28. bool debugShowCheckedModeBanner = true,
  29. Map<LogicalKeySet, Intent>? shortcuts,
  30. ScrollBehavior? scrollBehavior,
  31. CustomTransition? customTransition,
  32. Map<String, Map<String, String>>? translationsKeys,
  33. Translations? translations,
  34. VoidCallback? onInit,
  35. VoidCallback? onReady,
  36. VoidCallback? onDispose,
  37. ValueChanged<Routing?>? routingCallback,
  38. Transition? defaultTransition,
  39. List<FlowerPage>? pages,
  40. bool? opaqueRoute,
  41. bool? enableLog = kDebugMode,
  42. Logger? logWriterCallback,
  43. bool? popGesture,
  44. Duration? transitionDuration,
  45. bool? defaultGlobalState,
  46. SmartManagement smartManagement = SmartManagement.full,
  47. List<Bind> binds = const [],
  48. FlowerPage? unknownPage,
  49. ThemeData? highContrastTheme,
  50. ThemeData? highContrastDarkTheme,
  51. Map<Type, Action<Intent>>? actions,
})

Implementation

const FlowerApp({
  this.uiConfig,
  Key? key,
  this.navigatorKey,
  this.scaffoldMessengerKey,
  this.home,
  Map<String, Widget Function(BuildContext)> this.routes =
      const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.useInheritedMediaQuery = false,
  List<NavigatorObserver> this.navigatorObservers =
      const <NavigatorObserver>[],
  this.builder,
  this.textDirection,
  this.title = '',
  this.onGenerateTitle,
  // this.primaryColor,
  // this.theme,
  // this.darkTheme,
  // this.themeMode = ThemeMode.system,
  this.locale,
  this.fallbackLocale,
  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.scrollBehavior,
  this.customTransition,
  this.translationsKeys,
  this.translations,
  this.onInit,
  this.onReady,
  this.onDispose,
  this.routingCallback,
  this.defaultTransition,
  this.pages,
  this.opaqueRoute,
  this.enableLog = kDebugMode,
  this.logWriterCallback,
  this.popGesture,
  this.transitionDuration,
  this.defaultGlobalState,
  this.smartManagement = SmartManagement.full,
  this.binds = const [],
  this.unknownPage,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.actions,
})  : routeInformationProvider = null,
      backButtonDispatcher = null,
      routeInformationParser = null,
      routerDelegate = null,
      super(key: key);