MaterialAppData constructor
const
MaterialAppData({
- Key? widgetKey,
- Widget? home,
- Map<
String, WidgetBuilder> routes = kDefaultAppRoutes, - String? initialRoute,
- List<
Route> onGenerateInitialRoutes()?, - RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- TransitionBuilder? builder,
- String? title,
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = kDefaultSupportedLocales, - bool showPerformanceOverlay = kDefaultShowPerformanceOverlay,
- bool checkerboardRasterCacheImages = kDefaultCheckerboardRasterCacheImages,
- bool checkerboardOffscreenLayers = kDefaultCheckerboardOffscreenLayers,
- bool showSemanticsDebugger = kDefaultShowSemanticsDebugger,
- bool debugShowCheckedModeBanner = kDefaultDebugShowCheckedModeBanner,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - ThemeData? theme,
- ThemeData? darkTheme,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- ThemeMode? themeMode,
- Duration themeAnimationDuration = kMaterialDefaultThemeAnimationDuration,
- Curve themeAnimationCurve = kMaterialDefaultThemeAnimationCurve,
- bool debugShowMaterialGrid = kDebugShowMaterialGrid,
- AnimationStyle? themeAnimationStyle,
Implementation
const MaterialAppData({
super.widgetKey,
super.navigatorKey,
super.home,
super.routes,
super.initialRoute,
super.onGenerateInitialRoutes,
super.onGenerateRoute,
super.onUnknownRoute,
super.navigatorObservers,
super.builder,
super.title,
super.onGenerateTitle,
super.color,
super.locale,
super.localizationsDelegates,
super.localeListResolutionCallback,
super.localeResolutionCallback,
super.supportedLocales,
super.showPerformanceOverlay,
super.checkerboardRasterCacheImages,
super.checkerboardOffscreenLayers,
super.showSemanticsDebugger,
super.debugShowCheckedModeBanner,
super.shortcuts,
super.actions,
super.onNavigationNotification,
super.restorationScopeId,
super.scrollBehavior,
this.scaffoldMessengerKey,
this.theme,
this.darkTheme,
this.highContrastTheme,
this.highContrastDarkTheme,
this.themeMode,
this.themeAnimationDuration = kMaterialDefaultThemeAnimationDuration,
this.themeAnimationCurve = kMaterialDefaultThemeAnimationCurve,
this.debugShowMaterialGrid = kDebugShowMaterialGrid,
this.themeAnimationStyle,
});