GetCupertinoApp<T> class
A CupertinoApp extension that integrates the Refreshed state management library.
This widget is similar to CupertinoApp, but with additional features provided by Refreshed, such as reactive state management, dependency injection, and navigation management.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- GetCupertinoApp
Constructors
-
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, Translations? translations, TextDirection? textDirection, String title = "", GenerateAppTitle? onGenerateTitle, Color? color, CustomTransition? customTransition, VoidCallback? onInit, VoidCallback? onDispose, Locale? locale, List<String, String> >Bind< ? binds, ScrollBehavior? scrollBehavior, Locale? fallbackLocale, Iterable<T> >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, bool useInheritedMediaQuery = false, GetPage<T> ? unknownRoute, dynamic routingCallback(Routing?)?, 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<T> >Type, Action< ? actions})Intent> > -
Constructs a GetCupertinoApp widget.
const
-
GetCupertinoApp.router({Key? key, CupertinoThemeData? theme, RouteInformationProvider? routeInformationProvider, RouteInformationParser<
Object> ? routeInformationParser, RouterDelegate<Object> ? routerDelegate, RouterConfig<Object> ? routerConfig, BackButtonDispatcher? backButtonDispatcher, TransitionBuilder? builder, String title = "", GenerateAppTitle? onGenerateTitle, bool useInheritedMediaQuery = false, Color? color, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, Locale? locale, 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, List<Bind< ? binds, ScrollBehavior? scrollBehavior, Map<T> >Type, Action< ? actions, CustomTransition? customTransition, Map<Intent> >String, Map< ? translationsKeys, Translations? translations, TextDirection? textDirection, Locale? fallbackLocale, dynamic routingCallback(Routing?)?, Transition? defaultTransition, bool? opaqueRoute, VoidCallback? onInit, VoidCallback? onReady, VoidCallback? onDispose, bool? enableLog = kDebugMode, LogWriterCallback? logWriterCallback, bool? popGesture, SmartManagement smartManagement = SmartManagement.full, Duration? transitionDuration, bool? defaultGlobalState, List<String, String> >GetPage< ? getPages, GetPage<T> >T> ? unknownRoute}) -
Constructs a GetCupertinoApp widget with router configuration.
const
Properties
-
actions
→ Map<
Type, Action< ?Intent> > -
The actions for shortcuts.
final
- backButtonDispatcher → BackButtonDispatcher?
-
The back button dispatcher for routing.
final
-
binds
→ List<
Bind< ?T> > -
The list of bindings for dependency injection.
final
- builder → TransitionBuilder?
-
A builder function to customize transitions between routes.
final
- checkerboardOffscreenLayers → bool
-
Whether to show offscreen layers checkerboard for debugging.
final
- checkerboardRasterCacheImages → bool
-
Whether to show raster cache images checkerboard for debugging.
final
- color → Color?
-
The primary color of the app.
final
- customTransition → CustomTransition?
-
A custom transition configuration for route transitions.
final
- debugShowCheckedModeBanner → bool
-
Whether to show checked mode banner in debug mode.
final
- defaultGlobalState → bool?
-
Whether the default global state is enabled.
final
- defaultTransition → Transition?
-
The default transition animation type.
final
- enableLog → bool?
-
Whether logging is enabled.
final
- fallbackLocale → Locale?
-
The fallback locale to use if the specified locale is not available.
final
-
getPages
→ List<
GetPage< ?T> > -
The pages for navigation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highContrastDarkTheme → ThemeData?
-
The high contrast dark theme for accessibility.
final
- highContrastTheme → ThemeData?
-
The high contrast theme for accessibility.
final
- home → Widget?
-
The default widget to show when the app is first run.
final
- initialRoute → String?
-
The name of the initial route the app should navigate to.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- locale → Locale?
-
The locale to use for localization.
final
- localeListResolutionCallback → LocaleListResolutionCallback?
-
The locale list resolution callback for internationalization.
final
- localeResolutionCallback → LocaleResolutionCallback?
-
The locale resolution callback for internationalization.
final
-
localizationsDelegates
→ Iterable<
LocalizationsDelegate> ? -
The localizations delegates for internationalization.
final
- logWriterCallback → LogWriterCallback?
-
The callback for writing logs.
final
-
A key to identify the navigator state.
final
-
A list of observers for navigation events.
final
- onDispose → VoidCallback?
-
The callback for when the app is disposed.
final
- onGenerateInitialRoutes → InitialRouteListFactory?
-
A function that generates a list of initial routes for navigation.
final
- onGenerateRoute → RouteFactory?
-
A function that generates routes for navigation.
final
- onGenerateTitle → GenerateAppTitle?
-
A function to generate the app's title dynamically.
final
- onInit → VoidCallback?
-
The callback for initializing the app.
final
- onReady → VoidCallback?
-
The callback for when the app is ready.
final
- onUnknownRoute → RouteFactory?
-
A function that generates a route when no other route matches.
final
- opaqueRoute → bool?
-
Whether routes should be opaque.
final
- popGesture → bool?
-
Whether pop gesture is enabled.
final
-
routeInformationParser
→ RouteInformationParser<
Object> ? -
The route information parser for routing.
final
- routeInformationProvider → RouteInformationProvider?
-
The route information provider for routing.
final
-
routerConfig
→ RouterConfig<
Object> ? -
The router configuration for routing.
final
-
routerDelegate
→ RouterDelegate<
Object> ? -
The router delegate for routing.
final
-
routes
→ Map<
String, WidgetBuilder> ? -
A map of named routes and their corresponding builder functions.
final
- routingCallback → dynamic Function(Routing?)?
-
The callback for routing events.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
The scroll behavior for scrolling.
final
-
shortcuts
→ Map<
LogicalKeySet, Intent> ? -
The shortcuts for keyboard shortcuts.
final
- showPerformanceOverlay → bool
-
Whether to show performance overlay for debugging.
final
- showSemanticsDebugger → bool
-
Whether to show semantics debugger for debugging.
final
- smartManagement → SmartManagement
-
The smart management strategy for state management.
final
-
supportedLocales
→ Iterable<
Locale> -
The supported locales for internationalization.
final
- textDirection → TextDirection?
-
The text direction of the app.
final
- theme → CupertinoThemeData?
-
The Cupertino theme data for styling.
final
- title → String
-
The title of the app, displayed in the device's title bar.
final
- transitionDuration → Duration?
-
The duration for transition animations.
final
- translations → Translations?
-
The translations for internationalization.
final
-
translationsKeys
→ Map<
String, Map< ?String, String> > -
A map of translation keys for internationalization.
final
-
unknownRoute
→ GetPage<
T> ? -
The unknown route page for navigation.
final
- useInheritedMediaQuery → bool
-
Whether to use inherited media query.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited