CoreKit constructor
const
CoreKit({
- Key? key,
- required CoreKitConfig config,
- bool ensureScreenSize = true,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- String title = '',
- String? restorationScopeId,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool showPerformanceOverlay = false,
- bool checkerboardOffscreenLayers = false,
- bool checkerboardRasterCacheImages = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Duration themeAnimationDuration = const Duration(milliseconds: 300),
- Curve themeAnimationCurve = Curves.easeInOut,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - bool debugShowMaterialGrid = false,
- Widget? home,
- Map<
String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- ScrollBehavior? scrollBehavior,
Implementation
const CoreKit({
super.key,
required this.config,
required this.navigatorKey,
this.ensureScreenSize = true,
this.theme,
this.darkTheme,
this.themeMode,
this.title = '',
this.restorationScopeId,
this.locale,
this.localizationsDelegates,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
this.showPerformanceOverlay = false,
this.checkerboardOffscreenLayers = false,
this.checkerboardRasterCacheImages = false,
this.showSemanticsDebugger = false,
this.debugShowCheckedModeBanner = true,
this.themeAnimationDuration = const Duration(milliseconds: 300),
this.themeAnimationCurve = Curves.easeInOut,
this.shortcuts,
this.actions,
this.debugShowMaterialGrid = false,
this.home,
this.routes = const <String, WidgetBuilder>{},
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.navigatorObservers = const <NavigatorObserver>[],
this.scrollBehavior,
}) : routerConfig = null,
app = null;