FlutlyApp constructor

const FlutlyApp({
  1. Key? key,
  2. required List<FlutlyPage> pages,
  3. FlutlyBottomBar? bottomBar,
  4. FlutlyAppBar? appBar,
  5. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  6. RouteInformationProvider? routeInformationProvider,
  7. RouteInformationParser<Object>? routeInformationParser,
  8. RouterDelegate<Object>? routerDelegate,
  9. RouterConfig<Object>? routerConfig,
  10. BackButtonDispatcher? backButtonDispatcher,
  11. String title = '',
  12. String onGenerateTitle(
    1. BuildContext
    )?,
  13. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  14. Color? color,
  15. ThemeData? theme,
  16. ThemeData? darkTheme,
  17. ThemeData? highContrastTheme,
  18. ThemeData? highContrastDarkTheme,
  19. ThemeMode? themeMode = ThemeMode.system,
  20. Locale? locale,
  21. Iterable<LocalizationsDelegate>? localizationsDelegates,
  22. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  23. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  24. Iterable<Locale>? supportedLocales = const <Locale>[Locale('en', 'US')],
  25. bool debugShowMaterialGrid = false,
  26. bool showPerformanceOverlay = false,
  27. bool checkerboardRasterCacheImages = false,
  28. bool checkerboardOffscreenLayers = false,
  29. bool showSemanticsDebugger = false,
  30. bool debugShowCheckedModeBanner = true,
  31. Map<ShortcutActivator, Intent>? shortcuts,
  32. Map<Type, Action<Intent>>? actions,
  33. String? restorationScopeId,
  34. ScrollBehavior? scrollBehavior,
  35. @Deprecated('Remove this parameter as it is now ignored. ' 'MaterialApp never introduces its own MediaQuery; the View widget takes care of that. ' 'This feature was deprecated after v3.7.0-29.0.pre.') bool useInheritedMediaQuery = false,
})

Implementation

const FlutlyApp({
  Key? key,
  required this.pages,
  this.bottomBar,
  this.appBar,
  this.scaffoldMessengerKey,
  this.routeInformationProvider,
  this.routeInformationParser,
  this.routerDelegate,
  this.routerConfig,
  this.backButtonDispatcher,
  this.title = '',
  this.onGenerateTitle,
  this.builder,
  this.color,
  this.theme,
  this.darkTheme,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.themeMode = ThemeMode.system,
  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,
  @Deprecated('Remove this parameter as it is now ignored. '
      'MaterialApp never introduces its own MediaQuery; the View widget takes care of that. '
      'This feature was deprecated after v3.7.0-29.0.pre.')
  this.useInheritedMediaQuery = false,
}) : super(key: key);