ArcaneApp constructor

const ArcaneApp({
  1. Key? key,
  2. ArcaneTheme? theme,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. Widget? home,
  5. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  6. String initialRoute = "/",
  7. RouteFactory? onGenerateRoute,
  8. InitialRouteListFactory? onGenerateInitialRoutes,
  9. RouteFactory? onUnknownRoute,
  10. NotificationListenerCallback<NavigationNotification>? onNavigationNotification,
  11. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  12. TransitionBuilder? builder,
  13. String title = '',
  14. GenerateAppTitle? onGenerateTitle,
  15. Color? color,
  16. Locale? locale,
  17. Iterable<LocalizationsDelegate>? localizationsDelegates,
  18. LocaleListResolutionCallback? localeListResolutionCallback,
  19. LocaleResolutionCallback? localeResolutionCallback,
  20. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  21. bool debugShowMaterialGrid = false,
  22. bool showPerformanceOverlay = false,
  23. bool showSemanticsDebugger = false,
  24. bool debugShowCheckedModeBanner = false,
  25. Map<ShortcutActivator, Intent>? shortcuts,
  26. Map<Type, Action<Intent>>? actions,
  27. String? restorationScopeId,
  28. AdaptiveScaling? scaling,
  29. bool disableBrowserContextMenu = true,
})

Creates an ArcaneApp with standard navigation.

This constructor uses Flutter's standard navigation system with routes and a navigator. For more information, see Standard Navigation.

Implementation

const ArcaneApp({
  super.key,
  this.theme,
  this.navigatorKey,
  this.home,
  Map<String, WidgetBuilder> this.routes = const <String, WidgetBuilder>{},
  this.initialRoute = "/",
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.onNavigationNotification,
  List<NavigatorObserver> this.navigatorObservers =
      const <NavigatorObserver>[],
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = false,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scaling,
  this.disableBrowserContextMenu = true,
})  : routeInformationProvider = null,
      routeInformationParser = null,
      routerDelegate = null,
      backButtonDispatcher = null,
      routerConfig = null;