SundayCupertinoApp class

A customizable Cupertino-style application widget for Sunday UI.

This widget is the root of your Cupertino-style application and provides various configuration options for theming, routing, and debugging.

Inheritance

Constructors

SundayCupertinoApp({Key? key, CupertinoThemeData? theme, required Widget home, required String title, Map<String, WidgetBuilder>? routes, String? initialRoute, GlobalKey<NavigatorState>? navigatorKey, List<NavigatorObserver>? navigatorObservers, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, Iterable<Locale>? supportedLocales, Locale? locale, bool? debugShowCheckedModeBanner, bool? showPerformanceOverlay, bool? showSemanticsDebugger, Iterable<LocalizationsDelegate>? localizationsDelegates, LocaleResolutionCallback? localeResolutionCallback})
Creates a SundayCupertinoApp.
const

Properties

debugShowCheckedModeBanner bool?
Turns on checkerboarding of raster cache images.
final
hashCode int
The hash code for this object.
no setterinherited
home Widget
The widget for the default route of the app (the first screen shown).
final
initialRoute String?
The name of the first route to show.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
The current locale for the app's localizations.
final
localeResolutionCallback LocaleResolutionCallback?
The callback that determines the app's locale when the app is started.
final
localizationsDelegates Iterable<LocalizationsDelegate>?
The delegates for this app's Localizations widget.
final
A key to use when building the application.
final
The list of observers for the navigation events.
final
onGenerateRoute RouteFactory?
Called to generate a route for a given RouteSettings.
final
onUnknownRoute RouteFactory?
Called when onGenerateRoute fails to generate a route.
final
routes Map<String, WidgetBuilder>?
The application's top-level routing table.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showPerformanceOverlay bool?
Turns on a performance overlay.
final
showSemanticsDebugger bool?
Turns on a little "DEBUG" banner in checked mode to indicate that the app is in checked mode.
final
supportedLocales Iterable<Locale>?
The list of locales that this app supports.
final
theme CupertinoThemeData?
The theme to use for the application.
final
title String
The title of the app, typically shown in the operating system's task switcher.
final

Methods

build(BuildContext context) 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, 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