StandardMaterialApp<T> class

This class is used to create applications using Material Design with Patapata. Widgets that have this class as their parent cannot use widgets intended for use with CupertinoApp. Properties other than pages, routableBuilder, and willPopPage are properties to be passed to MaterialApp.router.

Inheritance
Mixed in types

Constructors

StandardMaterialApp({Key? key, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, RouteInformationProvider? routeInformationProvider, BackButtonDispatcher? backButtonDispatcher, TransitionBuilder? builder, required String onGenerateTitle(BuildContext), ThemeData? theme, ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, ThemeMode? themeMode, Color? color, Locale? locale, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, bool debugShowMaterialGrid = false, 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 StandardMaterialApp.
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 MaterialApp.router. See MaterialApp.checkerboardOffscreenLayers of MaterialApp for more details.
final
checkerboardRasterCacheImages bool
A bool to pass to checkerboardRasterCacheImages of MaterialApp.router. See MaterialApp.checkerboardRasterCacheImages of MaterialApp for more details.
final
color Color?
The primary color to use for the application in the operating system interface.
final
darkTheme ThemeData?
A ThemeData to pass to darkTheme of MaterialApp.router. See MaterialApp.darkTheme of MaterialApp for more details.
final
debugShowCheckedModeBanner bool
A bool to pass to debugShowCheckedModeBanner of MaterialApp.router. See MaterialApp.debugShowCheckedModeBanner of MaterialApp for more details.
final
debugShowMaterialGrid bool
A bool to pass to debugShowMaterialGrid of MaterialApp.router. See MaterialApp.debugShowMaterialGrid of MaterialApp for more details.
final
hashCode int
The hash code for this object.
no setterinherited
highContrastDarkTheme ThemeData?
A ThemeData to pass to highContrastDarkTheme of MaterialApp.router. See MaterialApp.highContrastDarkTheme of MaterialApp for more details.
final
highContrastTheme ThemeData?
A ThemeData to pass to highContrastTheme of MaterialApp.router. See MaterialApp.highContrastTheme of MaterialApp for more details.
final
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
A GlobalKey to pass to scaffoldMessengerKey of MaterialApp.router. See MaterialApp.scaffoldMessengerKey of MaterialApp for more details.
final
scrollBehavior ScrollBehavior?
A ScrollBehavior to pass to scrollBehavior of MaterialApp.router. See MaterialApp.scrollBehavior of MaterialApp for more details.
final
shortcuts Map<ShortcutActivator, Intent>?
See also:
final
showPerformanceOverlay bool
A bool to pass to showPerformanceOverlay of MaterialApp.router. See MaterialApp.showPerformanceOverlay of MaterialApp for more details.
final
showSemanticsDebugger bool
A bool to pass to showSemanticsDebugger of MaterialApp.router. See MaterialApp.showSemanticsDebugger of MaterialApp for more details.
final
theme ThemeData?
A ThemeData to pass to theme of MaterialApp.router. See MaterialApp.theme of MaterialApp for more details.
final
themeMode ThemeMode?
A ThemeMode to pass to themeMode of MaterialApp.router. See MaterialApp.themeMode of MaterialApp for more details.
final
willPopPage → (bool Function(Route route, dynamic result)?)
See PopScope for more details. 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<StandardMaterialApp<T>>
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}) 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

Static Properties

BuildContext directly under Navigator of StandardMaterialApp
no setter