OkitoCupertinoApp class
OkitoCupertinoApp is the replacement of CupertinoApp to use all of Okito features in your app!
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- OkitoCupertinoApp
Constructors
-
OkitoCupertinoApp({Key? key, Widget? home, CupertinoThemeData? theme, Map<
String, WidgetBuilder> ? routes, String? initialRoute, InitialRouteListFactory? onGenerateInitialRoutes, RouteFactory? onUnknownRoute, RouteInformationProvider? routeInformationProvider, RouteInformationParser<Object> ? routeInformationParser, RouterDelegate<Object> ? routerDelegate, BackButtonDispatcher? backButtonDispatcher, TransitionBuilder? builder, String title = 'OkitoCupertinoApp', GenerateAppTitle? onGenerateTitle, Color? color, 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<Type, Action< ? actions, String? restorationScopeId, Map<Intent> >LogicalKeySet, Intent> ? shortcuts, TranslationMapType translations = const {}, ScrollBehavior? scrollBehavior, bool useInheritedMediaQuery = false}) -
The constant constuctor of OkitoCupertinoApp.
const
Properties
-
actions
→ Map<
Type, Action< ?Intent> > -
The default map of intent keys to actions for the application.
final
- backButtonDispatcher → BackButtonDispatcher?
-
Report to a Router when the user taps the back button on
platforms that support back buttons like Android.
final
- builder → TransitionBuilder?
-
The builder of your app, you can use this for
custom animations or other things that you want to do.
final
- checkerboardOffscreenLayers → bool
-
Turns on checkerboarding of layers rendered to offscreen bitmaps.
final
- checkerboardRasterCacheImages → bool
-
Turns on checkerboarding of raster cache images.
final
- color → Color?
-
Color that has general usage in your app.
final
- debugShowCheckedModeBanner → bool
-
Turns on a little "DEBUG" banner in checked mode to indicate
that the app is in checked mode.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- home → Widget?
-
The main widget of your app, if you are not using a total routing system
you can declare a home widget.
final
- initialRoute → String?
-
Starting route of your app, defaults to '/'.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- locale → Locale?
-
Default locale that your app will use for Okito localizations.
final
- localeListResolutionCallback → LocaleListResolutionCallback?
-
This callback is responsible for choosing the app's locale when the app
is started, and when the user changes the device's locale.
final
- localeResolutionCallback → LocaleResolutionCallback?
-
The signature of WidgetsApp.localeResolutionCallback.
final
-
localizationsDelegates
→ Iterable<
LocalizationsDelegate> ? -
The delegates for this app's Localizations widget.
final
-
Use this only if you are using another library that requires
navigatorObservers. You don't need to do this for Okito.
final
- onGenerateInitialRoutes → InitialRouteListFactory?
-
This function is called at the start of app, when it generates
the routes.
final
- onGenerateTitle → GenerateAppTitle?
-
This function is called whenever the app goes to a new screen and
you can use it to generate new titles.
final
- onUnknownRoute → RouteFactory?
-
When we went to an route that is not registered this will work.
final
- restorationScopeId → String?
-
The identifier to use for state restoration of this app.
final
-
routeInformationParser
→ RouteInformationParser<
Object> ? -
A delegate that is used by the Router widget to parse a route
information into a configuration of type T.
final
- routeInformationProvider → RouteInformationProvider?
-
A route information provider that provides route information
for the Router widget.
final
-
routerDelegate
→ RouterDelegate<
Object> ? -
A delegate that is used by the Router widget to build and
configure a navigating widget.
final
-
routes
→ Map<
String, WidgetBuilder> ? -
The routes of your app, you just declare them like normal app.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
The default ScrollBehavior for the application.
final
-
shortcuts
→ Map<
LogicalKeySet, Intent> ? -
The default map of keyboard shortcuts to intents for the application.
final
- showPerformanceOverlay → bool
-
Turns on a performance overlay.
final
- showSemanticsDebugger → bool
-
Turns on an overlay that shows the accessibility information
reported by the framework.
final
-
supportedLocales
→ Iterable<
Locale> -
List of supported locales.
final
- theme → CupertinoThemeData?
-
Your apps theme data.
final
- title → String
-
Default title of your app.
final
- translations → TranslationMapType
-
The translations of your app.
final
- useInheritedMediaQuery → bool
-
If true, an inherited MediaQuery will be used. If one is not available,
or this is false, one will be built from the window.
final
Methods
-
build(
BuildContext ctx) → 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