StandardMaterialApp<T> constructor
const
StandardMaterialApp<T> ({
- Key? key,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - RouteInformationProvider? routeInformationProvider,
- BackButtonDispatcher? backButtonDispatcher,
- TransitionBuilder? builder,
- required String onGenerateTitle(),
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- ThemeMode? themeMode,
- Color? color,
- Locale? locale,
- LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- bool debugShowMaterialGrid = false,
- bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- required List<
StandardPageWithResultFactory< pages,StandardPageWithResult< >Object?, Object?> , Object?, Object?> - Widget routableBuilder(
- BuildContext context,
- Widget? child
- bool willPopPage(
- Route route,
- dynamic result
Creates a StandardMaterialApp.
Implementation
const StandardMaterialApp({
super.key,
this.scaffoldMessengerKey,
this.routeInformationProvider,
this.backButtonDispatcher,
this.builder,
required this.onGenerateTitle,
this.theme,
this.darkTheme,
this.highContrastTheme,
this.highContrastDarkTheme,
this.themeMode,
this.color,
this.locale,
this.localeListResolutionCallback,
this.localeResolutionCallback,
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,
required List<StandardPageWithResultFactory> pages,
Widget Function(BuildContext context, Widget? child)? routableBuilder,
bool Function(Route<dynamic> route, dynamic result)? willPopPage,
}) : _pages = pages,
_routableBuilder = routableBuilder,
_willPopPage = willPopPage;