SyncEaseApp class
A custom MaterialApp widget with simplified setup for SyncEase applications.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SyncEaseApp
Constructors
-
SyncEaseApp({Key? key, required Widget home, GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, String? initialRoute, Route? onGenerateRoute(RouteSettings)?, List<Route> onGenerateInitialRoutes(String)?, Route? onUnknownRoute(RouteSettings)?, Widget builder(BuildContext, Widget?)?, String title = '', String onGenerateTitle(BuildContext)?, Color? color, ThemeData? theme, ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, ThemeMode themeMode = ThemeMode.system, Duration themeAnimationDuration = kThemeAnimationDuration, Curve themeAnimationCurve = Curves.linear, Locale? locale, Iterable<LocalizationsDelegate> ? localizationsDelegates, Locale? localeListResolutionCallback(List<Locale> ?, Iterable<Locale> )?, Locale? localeResolutionCallback(Locale?, Iterable<Locale> )?, 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 = true, Map<ShortcutActivator, Intent> ? shortcuts, Map<Type, Action< ? actions, String? restorationScopeId, ScrollBehavior? scrollBehavior, bool useInheritedMediaQuery = false})Intent> > -
Creates a SyncEaseApp.
const
Properties
-
actions
→ Map<
Type, Action< ?Intent> > -
The map of actions to use with the shortcuts.
final
- builder → Widget Function(BuildContext, Widget?)?
-
A builder for the top-level Navigator.
final
- checkerboardOffscreenLayers → bool
-
Whether to overlay the checkerboard pattern for offscreen layers.
final
- checkerboardRasterCacheImages → bool
-
Whether to overlay the checkerboard pattern for raster cache images.
final
- color → Color?
-
The primary color of the application.
final
- darkTheme → ThemeData?
-
The dark theme to use for the application.
final
- debugShowCheckedModeBanner → bool
-
Whether to show the debug banner.
final
- debugShowMaterialGrid → bool
-
Whether to show a grid overlay for debugging the application's layout.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highContrastDarkTheme → ThemeData?
-
The high contrast dark theme to use for the application.
final
- highContrastTheme → ThemeData?
-
The high contrast theme to use for the application.
final
- home → Widget
-
The widget for the default route of the app.
final
- initialRoute → String?
-
The name of the first route to show, if a Navigator is used.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- locale → Locale?
-
The locale for the application.
final
-
localeListResolutionCallback
→ Locale? Function(List<
Locale> ?, Iterable<Locale> )? -
A callback for resolving the list of locales.
final
-
localeResolutionCallback
→ Locale? Function(Locale?, Iterable<
Locale> )? -
A callback for resolving the locale.
final
-
localizationsDelegates
→ Iterable<
LocalizationsDelegate> ? -
The delegates for localizing the application's text.
final
-
A key to use for the Navigator.
final
-
A list of observers for the Navigator.
final
-
onGenerateInitialRoutes
→ List<
Route> Function(String)? -
A callback to return a list of initial routes.
final
- onGenerateRoute → Route? Function(RouteSettings)?
-
A callback to create a route.
final
- onGenerateTitle → String Function(BuildContext)?
-
A callback to generate the application's title.
final
-
A callback for handling system navigation notifications.
final
- onUnknownRoute → Route? Function(RouteSettings)?
-
A callback for handling unknown routes.
final
- restorationScopeId → String?
-
The restoration ID to save and restore the state of the app.
final
-
routes
→ Map<
String, WidgetBuilder> -
A map of named routes for the app.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaffoldMessengerKey
→ GlobalKey<
ScaffoldMessengerState> ? -
A key to use for the ScaffoldMessenger.
final
- scrollBehavior → ScrollBehavior?
-
The default scroll behavior for the application.
final
-
shortcuts
→ Map<
ShortcutActivator, Intent> ? -
The map of shortcuts to actions.
final
- showPerformanceOverlay → bool
-
Whether to show performance overlay.
final
- showSemanticsDebugger → bool
-
Whether to show the semantics debugger tool.
final
-
supportedLocales
→ Iterable<
Locale> -
The list of supported locales for the application.
final
- theme → ThemeData?
-
The theme to use for the application.
final
- themeAnimationCurve → Curve
-
The curve for the theme animation.
final
- themeAnimationDuration → Duration
-
The duration of the theme animation.
final
- themeMode → ThemeMode
-
The mode for the application's theme.
final
- title → String
-
The title of the application.
final
- useInheritedMediaQuery → bool
-
Whether to use the inherited MediaQuery.
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