BaseCupertinoApp constructor
const
BaseCupertinoApp({
- Key? key,
- Widget? home,
- String title = '',
- ValueCallback<
BuildContext> ? initState, - ValueCallback<
BuildContext> ? dispose, - CupertinoThemeData? theme,
- String? initialRoute,
- RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- TransitionBuilder? builder,
- LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- bool debugShowCheckedModeBanner = false,
- bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- Map<
String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, - Iterable<
LocalizationsDelegate> localizationsDelegates = const <LocalizationsDelegate<dynamic>>[DefaultCupertinoLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate], - Locale? locale = const Locale('zh'),
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('zh', 'CH'), Locale('en', 'US')], - ScrollBehavior? scrollBehavior,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - InitialRouteListFactory? onGenerateInitialRoutes,
- String? restorationScopeId,
- ValueCallback<
BuildContext> ? deactivate, - ValueCallback<
BuildContext> ? onInactive, - ValueCallback<
BuildContext> ? onPaused, - ValueCallback<
BuildContext> ? onDetached, - ValueCallback<
BuildContext> ? onResumed, - ValueCallback<
BuildContext> ? onHidden,
Implementation
const BaseCupertinoApp({
super.key,
this.home,
this.title = '',
this.initState,
this.dispose,
this.theme,
this.navigatorKey,
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.builder,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.onGenerateTitle,
this.color,
this.debugShowCheckedModeBanner = false,
this.showPerformanceOverlay = false,
this.checkerboardRasterCacheImages = false,
this.checkerboardOffscreenLayers = false,
this.showSemanticsDebugger = false,
this.routes = const <String, WidgetBuilder>{},
this.navigatorObservers = const <NavigatorObserver>[],
this.localizationsDelegates = const <LocalizationsDelegate<dynamic>>[
DefaultCupertinoLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
this.locale = const Locale('zh'),
this.supportedLocales = const <Locale>[
Locale('zh', 'CH'),
Locale('en', 'US')
],
this.scrollBehavior,
this.shortcuts,
this.actions,
this.onGenerateInitialRoutes,
this.restorationScopeId,
this.deactivate,
this.onInactive,
this.onPaused,
this.onDetached,
this.onResumed,
this.onHidden,
});