AdaptiveApp constructor

const AdaptiveApp({
  1. Key? key,
  2. Widget? home,
  3. AdaptiveThemeData? theme,
  4. bool debugShowCheckedModeBanner = true,
  5. GlobalKey<NavigatorState>? navigatorKey,
  6. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  7. String? initialRoute,
  8. RouteFactory? onGenerateRoute,
  9. InitialRouteListFactory? onGenerateInitialRoutes,
  10. RouteFactory? onUnknownRoute,
  11. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  12. TransitionBuilder? builder,
  13. String title = '',
  14. GenerateAppTitle? onGenerateTitle,
  15. Color? color,
  16. Locale? locale,
  17. Iterable<LocalizationsDelegate>? localizationsDelegates,
  18. LocaleListResolutionCallback? localeListResolutionCallback,
  19. LocaleResolutionCallback? localeResolutionCallback,
  20. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  21. bool showPerformanceOverlay = false,
  22. bool checkerboardRasterCacheImages = false,
  23. bool checkerboardOffscreenLayers = false,
  24. bool showSemanticsDebugger = false,
  25. Map<ShortcutActivator, Intent>? shortcuts,
  26. Map<Type, Action<Intent>>? actions,
  27. String? restorationScopeId,
  28. ScrollBehavior? scrollBehavior,
  29. AdaptiveThemeData? darkTheme,
  30. ThemeMode? themeMode = ThemeMode.system,
})

Implementation

const AdaptiveApp({
  super.key,
  this.home,
  this.theme,
  this.debugShowCheckedModeBanner = true,
  this.navigatorKey,
  Map<String, WidgetBuilder> this.routes = const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  List<NavigatorObserver> this.navigatorObservers =
      const <NavigatorObserver>[],
  this.builder,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.locale,
  this.localizationsDelegates,
  this.localeListResolutionCallback,
  this.localeResolutionCallback,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
  this.showPerformanceOverlay = false,
  this.checkerboardRasterCacheImages = false,
  this.checkerboardOffscreenLayers = false,
  this.showSemanticsDebugger = false,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  this.darkTheme,
  this.themeMode = ThemeMode.system,
});