SundayMaterialApp constructor
const
SundayMaterialApp({
- Key? key,
- ThemeData? theme,
- required Widget home,
- required String title,
- Map<
String, WidgetBuilder> ? routes, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- Iterable<
Locale> ? supportedLocales, - Locale? locale,
- bool? debugShowCheckedModeBanner,
- bool? showPerformanceOverlay,
- bool? showSemanticsDebugger,
- bool supportDarkMode = false,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleResolutionCallback? localeResolutionCallback,
Creates a SundayMaterialApp.
At least the home
and title
arguments must be non-null.
Implementation
const SundayMaterialApp({
super.key,
this.theme,
required this.home,
required this.title,
this.routes,
this.initialRoute,
this.navigatorKey,
this.navigatorObservers,
this.onGenerateRoute,
this.onUnknownRoute,
this.supportedLocales,
this.locale,
this.debugShowCheckedModeBanner,
this.showPerformanceOverlay,
this.showSemanticsDebugger,
this.supportDarkMode = false, // Default to false
this.localizationsDelegates,
this.localeResolutionCallback,
});