ShadcnApp.router constructor
const
ShadcnApp.router({
- Key? key,
- RouteInformationProvider? routeInformationProvider,
- RouteInformationParser<
Object> ? routeInformationParser, - RouterDelegate<
Object> ? routerDelegate, - RouterConfig<
Object> ? routerConfig, - BackButtonDispatcher? backButtonDispatcher,
- TransitionBuilder? builder,
- String title = '',
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- required ThemeData theme,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const [Locale('en', 'US')], - bool debugShowMaterialGrid = false,
- bool showPerformanceOverlay = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- ThemeData? materialTheme,
- CupertinoThemeData? cupertinoTheme,
- AdaptiveScaling? scaling,
- bool disableBrowserContextMenu = true,
- List<
Color> initialRecentColors = const [], - int maxRecentColors = 50,
- ValueChanged<
List< ? onRecentColorsChanged,Color> > - bool pixelSnap = true,
- bool enableScrollInterception = false,
- ThemeData? darkTheme,
- ThemeMode themeMode = ThemeMode.system,
- OverlayHandler? popoverHandler,
- OverlayHandler? tooltipHandler,
- bool enableThemeAnimation = true,
Implementation
const ShadcnApp.router({
super.key,
this.routeInformationProvider,
this.routeInformationParser,
this.routerDelegate,
this.routerConfig,
this.backButtonDispatcher,
this.builder,
this.title = '',
this.onGenerateTitle,
this.onNavigationNotification,
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 = 50,
this.onRecentColorsChanged,
this.pixelSnap = true,
this.enableScrollInterception = false,
this.darkTheme,
this.themeMode = ThemeMode.system,
this.popoverHandler,
this.tooltipHandler,
this.menuHandler,
this.enableThemeAnimation = true,
}) : assert(routerDelegate != null || routerConfig != null),
navigatorObservers = null,
navigatorKey = null,
onGenerateRoute = null,
home = null,
onGenerateInitialRoutes = null,
onUnknownRoute = null,
routes = null,
initialRoute = null;