StandardCupertinoApp<T> class

This class is used to create applications using Cupertino with Patapata. Widgets that have this class as their parent cannot use widgets intended for use with MaterialApp. Properties other than pages, routableBuilder, and willPopPage are the same as CupertinoApp.

Inheritance
Mixed-in types

Constructors

StandardCupertinoApp.new({Key? key, RouteInformationProvider? routeInformationProvider, BackButtonDispatcher? backButtonDispatcher, RouterConfig<Object>? routerConfig, TransitionBuilder? builder, required String onGenerateTitle(BuildContext), CupertinoThemeData? theme, Color? color, Locale? locale, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, bool showPerformanceOverlay = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, bool showSemanticsDebugger = false, bool debugShowCheckedModeBanner = true, Map<ShortcutActivator, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String? restorationScopeId, ScrollBehavior? scrollBehavior, required List<StandardPageWithResultFactory<StandardPageWithResult<Object?, Object?>, Object?, Object?>> pages, Widget routableBuilder(BuildContext context, Widget? child)?, bool willPopPage(Route route, dynamic result)?})
Creates a StandardCupertinoApp.
const

Properties

actions Map<Type, Action<Intent>>?
See also:
final
backButtonDispatcher BackButtonDispatcher?
A delegate that decide whether to handle the Android back button intent.
final
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
checkerboardOffscreenLayers bool
A bool to pass to checkerboardOffscreenLayers of CupertinoApp.router. See CupertinoApp.checkerboardOffscreenLayers of CupertinoApp for more details.
final
checkerboardRasterCacheImages bool
A bool to pass to checkerboardRasterCacheImages of CupertinoApp.router. See CupertinoApp.checkerboardRasterCacheImages of CupertinoApp for more details.
final
color Color?
The primary color to use for the application in the operating system interface.
final
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
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
The initial locale for this app's Localizations widget is based on this value.
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
onGenerateTitle String Function(BuildContext)
If non-null this callback function is called to produce the app's title string, otherwise title is used.
final
pages List<StandardPageWithResultFactory<StandardPageWithResult<Object?, Object?>, Object?, Object?>>
A list of pages using the StandardPageFactory class implemented with StandardMaterialApp. It is passed to the pageFactories of StandardRouterDelegate.
no setteroverride
restorationScopeId String?
The identifier to use for state restoration of this app.
final
routableBuilder Widget Function(BuildContext context, Widget? child)?
Wrap the entire Patapata Navigator-related application, enabling the use of screen transition-related functionalities through a function. It is passed to the routableBuilder of StandardRouterDelegate.
no setteroverride
routeInformationProvider RouteInformationProvider?
A object that provides route information through the RouteInformationProvider.value and notifies its listener when its value changes.
final
routerConfig RouterConfig<Object>?
An object to configure the underlying Router.
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<ShortcutActivator, Intent>?
See also:
final
showPerformanceOverlay bool
A bool to pass to showPerformanceOverlay of CupertinoApp.router. See CupertinoApp.showPerformanceOverlay of CupertinoApp for more details.
final
showSemanticsDebugger bool
A bool to pass to showSemanticsDebugger of CupertinoApp.router. See CupertinoApp.showSemanticsDebugger of CupertinoApp for more details.
final
theme CupertinoThemeData?
A CupertinoThemeData to pass to theme of CupertinoApp.router. See CupertinoApp.theme of CupertinoApp for more details.
final
willPopPage bool Function(Route route, dynamic result)?
A function called when the app goes back to the previous page. It is passed to the willPopPage of StandardRouterDelegate.
no setteroverride

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StandardCupertinoApp>
Creates the mutable state for this widget at a given location in the tree.
override
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, int wrapWidth = 65}) 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