AppController class
The root controller of OkitoMaterialApp and OkitoCupertinoApp.
This controller is already injected to the Okito. You can use it by
Okito.app
//or
Okito.use<AppController>()
- Inheritance
-
- Object
- OkitoController
- AppController
Constructors
Properties
- cupertinoThemeData ↔ CupertinoThemeData?
-
Returns your cupertinoThemeData but it can be null
if you didn't set it yet.
getter/setter pair
- fallbackLocale ↔ Locale
-
A fallback locale if there are no given locale or the locale provided
is not found in the translations.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMaterial ↔ bool
-
Returns the current app, if you used OkitoMaterialApp, it will be true,
if you used OkitoCupertinoApp, it will be false.
getter/setter pair
- locale ↔ Locale?
-
Returns locale of your app.
getter/setter pair
-
routes
↔ Map<
String, Widget Function(BuildContext)> -
These routes are the main routes of the OkitoMaterialApp or
OkitoCupertinoApp, we don't do any change here, we just save it.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeData ↔ ThemeData?
-
Returns your themeData but it can be null if you didn't set it yet.
getter/setter pair
- themeMode ↔ ThemeMode?
-
Returns your themeMode but it can be null if you didn't set it yet.
getter/setter pair
-
translations
↔ Map<
String, Map< String, String> > -
The translations of your app.
getter/setter pair
Methods
-
dispose(
) → void -
dispose method is called when your OkitoBuilder is removed from
the widget tree.
inherited
-
initState(
) → void -
initState methods is called when your OkitoBuilder is mounted
to the widget tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGenerateRoute(
RouteSettings settings) → Route? -
When user tries to go to a dynamic route such as
'/users/31'
and we have'/users/:id'
on routes, Flutter wont be able to identify the correct route and onGenerateRoute function will be evaluated. -
onInject(
) → void -
onInject method is called only when you
inject it with
Okito.inject()
inherited -
setCupertinoThemeData(
CupertinoThemeData newCupertinoThemeData) → void - Updates the current cupertinoThemeData of your app, then re-builds your app, so that your changes will be seen in the screen. If you don't want a re-build , you can directly set cupertinoThemeData.
-
setLocale(
Locale newLocale) → void - Updates the current locale of your app, then re-builds your app, so that your changes will be seen in the screen. If you don't want a re-build, you can directly set locale.
-
setState(
VoidCallback callback) → void -
setState method notifies all the builders to re-build the state
after the callback ends.
inherited
-
setStateAsync(
FutureVoidCallback callback) → Future< void> -
setStateAsync method notifies all the builders to re-build the state
after the callback ends.
inherited
-
setThemeData(
ThemeData newThemeData) → void - Updates the current themeData of your app, then re-builds your app, so that your changes will be seen in the screen. If you don't want a re-build , you can directly set themeData.
-
setThemeMode(
ThemeMode newThemeMode) → void - Updates the current themeMode of your app, then re-builds your app, so that your changes will be seen in the screen. If you don't want a re-build , you can directly set themeMode.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → void -
update method notifies all the builders to re-build the state.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited