BaseCupertinoApp constructor

const BaseCupertinoApp({
  1. Key? key,
  2. Widget? home,
  3. String title = '',
  4. ValueCallback<BuildContext>? initState,
  5. ValueCallback<BuildContext>? dispose,
  6. CupertinoThemeData? theme,
  7. GlobalKey<NavigatorState>? navigatorKey,
  8. String? initialRoute,
  9. RouteFactory? onGenerateRoute,
  10. RouteFactory? onUnknownRoute,
  11. TransitionBuilder? builder,
  12. LocaleListResolutionCallback? localeListResolutionCallback,
  13. LocaleResolutionCallback? localeResolutionCallback,
  14. GenerateAppTitle? onGenerateTitle,
  15. Color? color,
  16. bool debugShowCheckedModeBanner = false,
  17. bool showPerformanceOverlay = false,
  18. bool checkerboardRasterCacheImages = false,
  19. bool checkerboardOffscreenLayers = false,
  20. bool showSemanticsDebugger = false,
  21. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  22. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  23. Iterable<LocalizationsDelegate> localizationsDelegates = const <LocalizationsDelegate<dynamic>>[DefaultCupertinoLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate],
  24. Locale? locale = const Locale('zh'),
  25. Iterable<Locale> supportedLocales = const <Locale>[Locale('zh', 'CH'), Locale('en', 'US')],
  26. ScrollBehavior? scrollBehavior,
  27. Map<LogicalKeySet, Intent>? shortcuts,
  28. Map<Type, Action<Intent>>? actions,
  29. InitialRouteListFactory? onGenerateInitialRoutes,
  30. String? restorationScopeId,
  31. ValueCallback<BuildContext>? deactivate,
  32. ValueCallback<BuildContext>? onInactive,
  33. ValueCallback<BuildContext>? onPaused,
  34. ValueCallback<BuildContext>? onDetached,
  35. ValueCallback<BuildContext>? onResumed,
  36. 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,
});