FlutlyApp constructor

const FlutlyApp({
  1. Key? key,
  2. required List<FlutlyPage> pages,
  3. FlutlyBottomBar? bottomBar,
  4. FlutlyAppBar? appBar,
  5. List<FlutlyTabViewController>? tabBars,
  6. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  7. RouteInformationProvider? routeInformationProvider,
  8. RouteInformationParser<Object>? routeInformationParser,
  9. RouterDelegate<Object>? routerDelegate,
  10. RouterConfig<Object>? routerConfig,
  11. BackButtonDispatcher? backButtonDispatcher,
  12. String title = '',
  13. String onGenerateTitle(
    1. BuildContext
    )?,
  14. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  15. Color? color,
  16. ThemeData? theme,
  17. ThemeData? darkTheme,
  18. ThemeData? highContrastTheme,
  19. ThemeData? highContrastDarkTheme,
  20. ThemeMode? themeMode = ThemeMode.system,
  21. Locale? locale,
  22. Iterable<LocalizationsDelegate>? localizationsDelegates,
  23. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  24. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  25. Iterable<Locale>? supportedLocales = const <Locale>[Locale('en', 'US')],
  26. bool debugShowMaterialGrid = false,
  27. bool showPerformanceOverlay = false,
  28. bool checkerboardRasterCacheImages = false,
  29. bool checkerboardOffscreenLayers = false,
  30. bool showSemanticsDebugger = false,
  31. bool debugShowCheckedModeBanner = true,
  32. Map<ShortcutActivator, Intent>? shortcuts,
  33. Map<Type, Action<Intent>>? actions,
  34. String? restorationScopeId,
  35. ScrollBehavior? scrollBehavior,
  36. @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.tabBars,
  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);