ShadcnApp constructor
const
ShadcnApp({
- Key? key,
- Widget? home,
- Map<
String, WidgetBuilder> ? routes = const {}, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- InitialRouteListFactory? onGenerateInitialRoutes,
- RouteFactory? onUnknownRoute,
- 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 = 10,
- ValueChanged<
List< ? onRecentColorsChanged,Color> > - bool pixelSnap = true,
- bool enableScrollInterception = true,
- ThemeData? darkTheme,
- ThemeMode themeMode = ThemeMode.system,
- OverlayHandler? popoverHandler,
- OverlayHandler? tooltipHandler,
- 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;