HeadlessMaterialApp constructor
const
HeadlessMaterialApp({
- Key? key,
- HeadlessTheme? headlessTheme,
- OverlayController? overlayController,
- bool enableAutoRepositionTicker = false,
- bool requireResolvedTokens = true,
- String title = '',
- bool debugShowCheckedModeBanner = false,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- Color? color,
- Widget? home,
- Map<
String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - TransitionBuilder? builder,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
Implementation
const HeadlessMaterialApp({
super.key,
this.headlessTheme,
this.overlayController,
this.enableAutoRepositionTicker = false,
this.requireResolvedTokens = true,
this.title = '',
this.debugShowCheckedModeBanner = false,
this.theme,
this.darkTheme,
this.themeMode,
this.color,
this.home,
this.routes = const <String, WidgetBuilder>{},
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.navigatorKey,
this.scaffoldMessengerKey,
this.builder,
this.locale,
this.localizationsDelegates,
this.localeResolutionCallback,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
});