SundayApp class
A customizable application widget that can switch between Material and Cupertino styles.
This widget provides a flexible foundation for building cross-platform apps with a consistent look and feel, while allowing for easy switching between Material and Cupertino design languages.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SundayApp
Constructors
-
SundayApp({Key? key, required Widget home, required String title, dynamic theme, Color? primaryColor, List<
Locale> supportedLocales = const [Locale('en', ''), Locale('ar', ''), Locale('bn', ''), Locale('de', ''), Locale('es', ''), Locale('fr', ''), Locale('hi', ''), Locale('ja', ''), Locale('jv', ''), Locale('ko', ''), Locale('mr', ''), Locale('pt', ''), Locale('ru', ''), Locale('ta', ''), Locale('tr', ''), Locale('ur', ''), Locale('vi', ''), Locale('zh', '')], Locale? locale, required Style uiStyle, Map<String, WidgetBuilder> ? routes, String? initialRoute, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, bool? debugShowCheckedModeBanner = false, bool? showPerformanceOverlay, bool? showSemanticsDebugger, bool supportDarkMode = true, Iterable<LocalizationsDelegate> ? localizationsDelegates, Locale? localeResolutionCallback(Locale?, Iterable<Locale> )?, Widget builder(BuildContext, Widget?)?}) -
Creates a SundayApp.
const
Properties
- builder → Widget Function(BuildContext, Widget?)?
-
The builder function for the app.
final
- debugShowCheckedModeBanner → bool?
-
Whether to show a "DEBUG" banner in checked mode.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- home → Widget
-
The widget to be displayed as the home screen of the app.
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 locale to use for the app's localized resources.
final
-
localeResolutionCallback
→ Locale? Function(Locale?, Iterable<
Locale> )? -
The locale resolution callback.
final
-
localizationsDelegates
→ Iterable<
LocalizationsDelegate> ? -
The localization delegates for the app.
final
-
A key to use for the Navigator.
final
-
A list of observers for the Navigator.
final
- onGenerateRoute → RouteFactory?
-
The route generator callback used when the app is navigating to a named route.
final
- onUnknownRoute → RouteFactory?
-
The route generator callback used when the app is navigating to an unknown route.
final
- primaryColor → Color?
-
The primary color to use for the Cupertino version of the app.
final
-
routes
→ Map<
String, WidgetBuilder> ? -
The app's top-level routing table.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showPerformanceOverlay → bool?
-
Whether to show performance overlay.
final
- showSemanticsDebugger → bool?
-
Whether to show semantics debugger.
final
- supportDarkMode → bool
-
Whether to support dark mode.
final
-
supportedLocales
→ List<
Locale> -
The list of locales the app supports.
final
- theme → dynamic
-
The theme to use for the Material version of the app.
final
- title → String
-
The title of the app, typically displayed in the device's task switcher.
final
- uiStyle → Style
-
The UI style to use (Material or Cupertino).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SundayApp> -
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