GetCupertinoApp constructor
const
GetCupertinoApp({
- Key? key,
- CupertinoThemeData? theme,
- Widget? home,
- Map<
String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{}, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- InitialRouteListFactory? onGenerateInitialRoutes,
- RouteFactory? onUnknownRoute,
- TransitionBuilder? builder,
- Map<
String, Map< ? translationsKeys,String, String> > - Translations? translations,
- TextDirection? textDirection,
- String title = '',
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- CustomTransition? customTransition,
- VoidCallback? onInit,
- VoidCallback? onDispose,
- Locale? locale,
- List<
Bind> binds = const [], - ScrollBehavior? scrollBehavior,
- Locale? fallbackLocale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
LogicalKeySet, Intent> ? shortcuts, - SmartManagement smartManagement = SmartManagement.full,
- BindingsInterface? initialBinding,
- bool useInheritedMediaQuery = false,
- GetPage? unknownRoute,
- dynamic routingCallback()?,
- Transition? defaultTransition,
- VoidCallback? onReady,
- List<
GetPage> ? getPages, - bool? opaqueRoute,
- bool? enableLog = kDebugMode,
- LogWriterCallback? logWriterCallback,
- bool? popGesture,
- Duration? transitionDuration,
- bool? defaultGlobalState,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- Map<
Type, Action< ? actions,Intent> >
Implementation
const GetCupertinoApp({
super.key,
this.theme,
this.navigatorKey,
this.home,
Map<String, Widget Function(BuildContext)> this.routes =
const <String, WidgetBuilder>{},
this.initialRoute,
this.onGenerateRoute,
this.onGenerateInitialRoutes,
this.onUnknownRoute,
List<NavigatorObserver> this.navigatorObservers =
const <NavigatorObserver>[],
this.builder,
this.translationsKeys,
this.translations,
this.textDirection,
this.title = '',
this.onGenerateTitle,
this.color,
this.customTransition,
this.onInit,
this.onDispose,
this.locale,
this.binds = const [],
this.scrollBehavior,
this.fallbackLocale,
this.localizationsDelegates,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
this.showPerformanceOverlay = false,
this.checkerboardRasterCacheImages = false,
this.checkerboardOffscreenLayers = false,
this.showSemanticsDebugger = false,
this.debugShowCheckedModeBanner = true,
this.shortcuts,
this.smartManagement = SmartManagement.full,
this.initialBinding,
this.useInheritedMediaQuery = false,
this.unknownRoute,
this.routingCallback,
this.defaultTransition,
this.onReady,
this.getPages,
this.opaqueRoute,
this.enableLog = kDebugMode,
this.logWriterCallback,
this.popGesture,
this.transitionDuration,
this.defaultGlobalState,
this.highContrastTheme,
this.highContrastDarkTheme,
this.actions,
}) : routeInformationProvider = null,
backButtonDispatcher = null,
routeInformationParser = null,
routerDelegate = null,
routerConfig = null;