AndrossyApp class
Constructors
AndrossyApp ({Key ? key , GlobalKey <NavigatorState > ? navigatorKey , GlobalKey <ScaffoldMessengerState > ? scaffoldMessengerKey , Widget ? home , Map <String , WidgetBuilder > routes = const <String, WidgetBuilder>{} , String ? initialRoute , RouteFactory ? onGenerateRoute , InitialRouteListFactory ? onGenerateInitialRoutes , RouteFactory ? onUnknownRoute , NotificationListenerCallback <NavigationNotification > ? onNavigationNotification , List <NavigatorObserver > navigatorObservers = const <NavigatorObserver>[] , TransitionBuilder ? builder , String title = '' , GenerateAppTitle ? onGenerateTitle , Color ? color , ThemeData ? theme , ThemeData ? darkTheme , ThemeData ? highContrastTheme , ThemeData ? highContrastDarkTheme , Duration themeAnimationDuration = kThemeAnimationDuration , Curve themeAnimationCurve = Curves.linear , Locale ? locale , Iterable <LocalizationsDelegate > ? localizationsDelegates , LocaleListResolutionCallback ? localeListResolutionCallback , LocaleResolutionCallback ? localeResolutionCallback , Iterable <Locale > supportedLocales = const <Locale>[Locale('en', 'US')] , bool debugShowMaterialGrid = false , bool showPerformanceOverlay = false , bool checkerboardRasterCacheImages = false , bool checkerboardOffscreenLayers = false , bool showSemanticsDebugger = false , bool debugShowCheckedModeBanner = false , Map <ShortcutActivator , Intent > ? shortcuts , Map <Type , Action <Intent > > ? actions , String ? restorationScopeId , ScrollBehavior ? scrollBehavior , AndrossyConfigure configure = const AndrossyConfigure.none() , AndrossyLocalizer localizer = const AndrossyLocalizer.none() , Androssy androssy = const Androssy() , bool userNetworkStatus = false })
AndrossyApp.router ({Key ? key , GlobalKey <ScaffoldMessengerState > ? scaffoldMessengerKey , RouteInformationProvider ? routeInformationProvider , RouteInformationParser <Object > ? routeInformationParser , RouterDelegate <Object > ? routerDelegate , RouterConfig <Object > ? routerConfig , BackButtonDispatcher ? backButtonDispatcher , TransitionBuilder ? builder , String title = '' , GenerateAppTitle ? onGenerateTitle , NotificationListenerCallback <NavigationNotification > ? onNavigationNotification , Color ? color , ThemeData ? theme , ThemeData ? darkTheme , ThemeData ? highContrastTheme , ThemeData ? highContrastDarkTheme , Duration themeAnimationDuration = kThemeAnimationDuration , Curve themeAnimationCurve = Curves.linear , Locale ? locale , Iterable <LocalizationsDelegate > ? localizationsDelegates , LocaleListResolutionCallback ? localeListResolutionCallback , LocaleResolutionCallback ? localeResolutionCallback , Iterable <Locale > supportedLocales = const <Locale>[Locale('en', 'US')] , bool debugShowMaterialGrid = false , bool showPerformanceOverlay = false , bool checkerboardRasterCacheImages = false , bool checkerboardOffscreenLayers = false , bool showSemanticsDebugger = false , bool debugShowCheckedModeBanner = false , Map <ShortcutActivator , Intent > ? shortcuts , Map <Type , Action <Intent > > ? actions , String ? restorationScopeId , ScrollBehavior ? scrollBehavior , AndrossyConfigure configure = const AndrossyConfigure.none() , AndrossyLocalizer localizer = const AndrossyLocalizer.none() , Androssy androssy = const Androssy() , bool userNetworkStatus = false })
Properties
actions
→ Map <Type , Action <Intent > > ?
The default map of intent keys to actions for the application.
final inherited
androssy
→ Androssy
final
backButtonDispatcher
→ BackButtonDispatcher ?
A delegate that decide whether to handle the Android back button intent.
final inherited
builder
→ TransitionBuilder ?
A builder for inserting widgets above the Navigator or - when the
WidgetsApp.router constructor is used - above the Router but below the
other widgets created by the WidgetsApp widget, or for replacing the
Navigator /Router entirely.
final inherited
checkerboardOffscreenLayers
→ bool
Turns on checkerboarding of layers rendered to offscreen bitmaps.
final inherited
checkerboardRasterCacheImages
→ bool
Turns on checkerboarding of raster cache images.
final inherited
color
→ Color ?
The primary color to use for the application in the operating system
interface.
final inherited
configure
→ AndrossyConfigure
final
darkTheme
→ ThemeData ?
The ThemeData to use when a 'dark mode' is requested by the system.
final inherited
debugShowCheckedModeBanner
→ bool
Turns on a little "DEBUG" banner in debug mode to indicate
that the app is in debug mode. This is on by default (in
debug mode), to turn it off, set the constructor argument to
false. In release mode this has no effect.
final inherited
debugShowMaterialGrid
→ bool
Turns on a GridPaper overlay that paints a baseline grid
Material apps.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
highContrastDarkTheme
→ ThemeData ?
The ThemeData to use when a 'dark mode' and 'high contrast' is requested
by the system.
final inherited
highContrastTheme
→ ThemeData ?
The ThemeData to use when 'high contrast' is requested by the system.
final inherited
home
→ Widget ?
The widget for the default route of the app (Navigator.defaultRouteName ,
which is /
).
final inherited
initialRoute
→ String ?
The name of the first route to show, if a Navigator is built.
final inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
locale
→ Locale ?
The initial locale for this app's Localizations widget is based
on this value.
final inherited
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 inherited
localeResolutionCallback
→ LocaleResolutionCallback ?
The signature of WidgetsApp.localeResolutionCallback .
final inherited
localizationsDelegates
→ Iterable <LocalizationsDelegate > ?
The delegates for this app's Localizations widget.
final inherited
localizer
→ AndrossyLocalizer
final
navigatorKey
→ GlobalKey <NavigatorState > ?
A key to use when building the Navigator .
final inherited
navigatorObservers
→ List <NavigatorObserver > ?
The list of observers for the Navigator created for this app.
final inherited
notifier
→ AndrossyNotifier <Androssy >
final
onGenerateInitialRoutes
→ InitialRouteListFactory ?
The routes generator callback used for generating initial routes if
initialRoute is provided.
final inherited
onGenerateRoute
→ RouteFactory ?
The route generator callback used when the app is navigated to a
named route.
final inherited
onGenerateTitle
→ GenerateAppTitle ?
If non-null this callback function is called to produce the app's
title string, otherwise title is used.
final inherited
onNavigationNotification
→ NotificationListenerCallback <NavigationNotification > ?
The callback to use when receiving a NavigationNotification .
final inherited
onUnknownRoute
→ RouteFactory ?
Called when onGenerateRoute fails to generate a route, except for the
initialRoute .
final inherited
restorationScopeId
→ String ?
The identifier to use for state restoration of this app.
final inherited
routeInformationParser
→ RouteInformationParser <Object > ?
A delegate to parse the route information from the
routeInformationProvider into a generic data type to be processed by
the routerDelegate at a later stage.
final inherited
routeInformationProvider
→ RouteInformationProvider ?
A object that provides route information through the
RouteInformationProvider.value and notifies its listener when its value
changes.
final inherited
routerConfig
→ RouterConfig <Object > ?
An object to configure the underlying Router .
final inherited
routerDelegate
→ RouterDelegate <Object > ?
A delegate that configures a widget, typically a Navigator , with
parsed result from the routeInformationParser .
final inherited
routes
→ Map <String , WidgetBuilder > ?
The application's top-level routing table.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scaffoldMessengerKey
→ GlobalKey <ScaffoldMessengerState > ?
A key to use when building the ScaffoldMessenger .
final inherited
scrollBehavior
→ ScrollBehavior ?
The default ScrollBehavior for the application.
final inherited
shortcuts
→ Map <ShortcutActivator , Intent > ?
The default map of keyboard shortcuts to intents for the application.
final inherited
showPerformanceOverlay
→ bool
Turns on a performance overlay.
final inherited
showSemanticsDebugger
→ bool
Turns on an overlay that shows the accessibility information
reported by the framework.
final inherited
supportedLocales
→ Iterable <Locale >
The list of locales that this app has been localized for.
final inherited
theme
→ ThemeData ?
Default visual properties, like colors fonts and shapes, for this app's
material widgets.
final inherited
themeAnimationCurve
→ Curve
The curve to apply when animating theme changes.
final inherited
themeAnimationDuration
→ Duration
The duration of animated theme changes.
final inherited
themeAnimationStyle
→ AnimationStyle ?
Used to override the theme animation curve and duration.
final inherited
themeMode
→ ThemeMode ?
Determines which theme will be used by the application if both theme
and darkTheme are provided.
final inherited
title
→ String
A one-line description used by the device to identify the app for the user.
final inherited
useInheritedMediaQuery
→ bool
Deprecated. This setting is now ignored.
final inherited
userNetworkStatus
→ bool
final