SyncEaseApp constructor

const SyncEaseApp({
  1. Key? key,
  2. required Widget home,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  5. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  6. String? initialRoute,
  7. Route? onGenerateRoute(
    1. RouteSettings
    )?,
  8. List<Route> onGenerateInitialRoutes(
    1. String
    )?,
  9. Route? onUnknownRoute(
    1. RouteSettings
    )?,
  10. bool onNavigationNotification(
    1. NavigationNotification
    )?,
  11. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  12. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  13. String title = '',
  14. String onGenerateTitle(
    1. BuildContext
    )?,
  15. Color? color,
  16. ThemeData? theme,
  17. ThemeData? darkTheme,
  18. ThemeData? highContrastTheme,
  19. ThemeData? highContrastDarkTheme,
  20. ThemeMode themeMode = ThemeMode.system,
  21. Duration themeAnimationDuration = kThemeAnimationDuration,
  22. Curve themeAnimationCurve = Curves.linear,
  23. Locale? locale,
  24. Iterable<LocalizationsDelegate>? localizationsDelegates,
  25. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  26. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  27. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  28. bool debugShowMaterialGrid = false,
  29. bool showPerformanceOverlay = false,
  30. bool checkerboardRasterCacheImages = false,
  31. bool checkerboardOffscreenLayers = false,
  32. bool showSemanticsDebugger = false,
  33. bool debugShowCheckedModeBanner = true,
  34. Map<ShortcutActivator, Intent>? shortcuts,
  35. Map<Type, Action<Intent>>? actions,
  36. String? restorationScopeId,
  37. ScrollBehavior? scrollBehavior,
  38. bool useInheritedMediaQuery = false,
})

Creates a SyncEaseApp.

Parameters:

  • home: The widget for the default route of the app.

Implementation

const SyncEaseApp({
  super.key,
  required this.home,
  this.navigatorKey,
  this.scaffoldMessengerKey,
  this.routes = const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.onNavigationNotification,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.theme,
  this.darkTheme,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.themeMode = ThemeMode.system,
  this.themeAnimationDuration = kThemeAnimationDuration,
  this.themeAnimationCurve = Curves.linear,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.debugShowMaterialGrid = false,
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.debugShowCheckedModeBanner = true,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  this.useInheritedMediaQuery = false,
});