AndrossyApp constructor

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

Implementation

AndrossyApp({
  super.key,
  super.navigatorKey,
  super.scaffoldMessengerKey,
  super.home,
  super.routes,
  super.initialRoute,
  super.onGenerateRoute,
  super.onGenerateInitialRoutes,
  super.onUnknownRoute,
  super.onNavigationNotification,
  super.navigatorObservers,
  super.builder,
  super.title = '',
  super.onGenerateTitle,
  super.color,
  super.theme,
  super.darkTheme,
  super.highContrastTheme,
  super.highContrastDarkTheme,
  super.themeAnimationDuration = kThemeAnimationDuration,
  super.themeAnimationCurve = Curves.linear,
  super.locale,
  super.localizationsDelegates,
  super.localeListResolutionCallback,
  super.localeResolutionCallback,
  super.supportedLocales = const <Locale>[Locale('en', 'US')],
  super.debugShowMaterialGrid = false,
  super.showPerformanceOverlay = false,
  super.checkerboardRasterCacheImages = false,
  super.checkerboardOffscreenLayers = false,
  super.showSemanticsDebugger = false,
  super.debugShowCheckedModeBanner = false,
  super.shortcuts,
  super.actions,
  super.restorationScopeId,
  super.scrollBehavior,
  this.configure = const AndrossyConfigure.none(),
  this.localizer = const AndrossyLocalizer.none(),
  this.androssy = const Androssy(),
  this.userNetworkStatus = false,
}) : notifier = AndrossyNotifier(androssy);