OkitoMaterialApp class

OkitoMaterialApp is the replacement of MaterialApp to use all of Okito features in your app!

Inheritance

Constructors

OkitoMaterialApp({Key? key, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, Widget? home, Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, String? initialRoute, InitialRouteListFactory? onGenerateInitialRoutes, RouteFactory? onUnknownRoute, RouteInformationProvider? routeInformationProvider, RouteInformationParser<Object>? routeInformationParser, RouterDelegate<Object>? routerDelegate, BackButtonDispatcher? backButtonDispatcher, TransitionBuilder? builder, String title = 'Okito App', GenerateAppTitle? onGenerateTitle, ThemeData? theme, ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, ThemeMode? themeMode = ThemeMode.system, Color? color, Locale? locale, Iterable<LocalizationsDelegate>? localizationsDelegates, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')], bool showPerformanceOverlay = false, bool showSemanticsDebugger = false, bool debugShowCheckedModeBanner = true, Map<LogicalKeySet, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String? restorationScopeId, bool debugShowMaterialGrid = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, TranslationMapType translations = const {}, List<NavigatorObserver>? navigatorObservers, ScrollBehavior? scrollBehavior, bool useInheritedMediaQuery = false})
The constant constuctor of OkitoMaterialApp.
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
darkTheme ThemeData?
Your theme for darkTheme mode.
final
debugShowCheckedModeBanner bool
Turns on a little "DEBUG" banner in checked mode to indicate that the app is in checked mode.
final
debugShowMaterialGrid bool
Turns on a GridPaper overlay that paints a baseline grid Material apps.
final
hashCode int
The hash code for this object.
no setterinherited
highContrastDarkTheme ThemeData?
High constrast dark theme for your app.
final
highContrastTheme ThemeData?
High constrast theme for your app.
final
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
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
State for a ScaffoldMessenger.
final
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 ThemeData?
Your apps theme data.
final
themeMode ThemeMode?
The themeMode of your app.
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