KareeMaterialApp constructor
KareeMaterialApp({
- Key? key,
- Map<
String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, - String title = '',
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode themeMode = ThemeMode.system,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool debugShowMaterialGrid = false,
- bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- Map<
LogicalKeySet, Intent> ? shortcuts, - KareeInstanceProfile profile = KareeInstanceProfile.development,
- ErrorContactAddress? errorContactAddress,
Implementation
KareeMaterialApp(
{Key? key,
this.routes = const <String, WidgetBuilder>{},
this.navigatorObservers = const <NavigatorObserver>[],
this.title = '',
this.onGenerateTitle,
this.color,
this.theme,
this.darkTheme,
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.profile = KareeInstanceProfile.development,
this.errorContactAddress}){
assert(profile == KareeInstanceProfile.development || profile == KareeInstanceProfile.production && errorContactAddress != null);
KareeMaterialApp.globalProfile = profile;
KareeMaterialApp.globalErrorContactAddress = errorContactAddress;
}