ShadcnApp constructor

const ShadcnApp({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. Widget? home,
  4. Map<String, WidgetBuilder>? routes = const {},
  5. String? initialRoute,
  6. RouteFactory? onGenerateRoute,
  7. InitialRouteListFactory? onGenerateInitialRoutes,
  8. RouteFactory? onUnknownRoute,
  9. NotificationListenerCallback<NavigationNotification>? onNavigationNotification,
  10. List<NavigatorObserver>? navigatorObservers = const [],
  11. TransitionBuilder? builder,
  12. String title = '',
  13. GenerateAppTitle? onGenerateTitle,
  14. Color? color,
  15. required ThemeData theme,
  16. Locale? locale,
  17. Iterable<LocalizationsDelegate>? localizationsDelegates,
  18. LocaleListResolutionCallback? localeListResolutionCallback,
  19. LocaleResolutionCallback? localeResolutionCallback,
  20. Iterable<Locale> supportedLocales = const [Locale('en', 'US')],
  21. bool debugShowMaterialGrid = false,
  22. bool showPerformanceOverlay = false,
  23. bool showSemanticsDebugger = false,
  24. bool debugShowCheckedModeBanner = true,
  25. Map<ShortcutActivator, Intent>? shortcuts,
  26. Map<Type, Action<Intent>>? actions,
  27. String? restorationScopeId,
  28. ScrollBehavior? scrollBehavior,
  29. ThemeData? materialTheme,
  30. CupertinoThemeData? cupertinoTheme,
  31. AdaptiveScaling? scaling,
  32. bool disableBrowserContextMenu = true,
  33. List<Color> initialRecentColors = const [],
  34. int maxRecentColors = 10,
  35. ValueChanged<List<Color>>? onRecentColorsChanged,
  36. bool pixelSnap = true,
  37. bool enableScrollInterception = true,
  38. ThemeData? darkTheme,
  39. ThemeMode themeMode = ThemeMode.system,
  40. OverlayHandler? popoverHandler,
  41. OverlayHandler? tooltipHandler,
  42. OverlayHandler? menuHandler,
  43. bool enableThemeAnimation = true,
})

Implementation

const ShadcnApp({
  super.key,
  this.navigatorKey,
  this.home,
  this.routes = const {},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.onNavigationNotification,
  this.navigatorObservers = const [],
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  required this.theme,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const [Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  this.materialTheme,
  this.cupertinoTheme,
  this.scaling,
  this.disableBrowserContextMenu = true,
  this.initialRecentColors = const [],
  this.maxRecentColors = 10,
  this.onRecentColorsChanged,
  this.pixelSnap = true,
  this.enableScrollInterception = true,
  this.darkTheme,
  this.themeMode = ThemeMode.system,
  this.popoverHandler,
  this.tooltipHandler,
  this.menuHandler,
  this.enableThemeAnimation = true,
})  : routeInformationProvider = null,
      routeInformationParser = null,
      routerDelegate = null,
      backButtonDispatcher = null,
      routerConfig = null;