SuravApp constructor
const
SuravApp({
- Key? key,
- bool checkerboardOffscreenLayers = false,
- bool debugShowCheckedModeBanner = false,
- Map<
String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{}, - bool showPerformanceOverlay = false,
- bool showSemanticsDebugger = false,
- Map<
Type, Action< ? actions,Intent> > - Widget builder()?,
- bool checkerboardRasterCacheImages = false,
- ThemeData? darkTheme,
- Color? color,
- bool debugShowMaterialGrid = false,
- ThemeData? highContrastDarkTheme,
- ThemeData? highContrastTheme,
- Widget? home,
- String? initialRoute,
- Locale? locale,
- Locale? localeListResolutionCallback()?,
- Locale? localeResolutionCallback()?,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - List<
Route> onGenerateInitialRoutes()?, - Route? onGenerateRoute()?,
- String onGenerateTitle()?,
- Route? onUnknownRoute()?,
- String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - Curve themeAnimationCurve = Curves.linear,
- Duration themeAnimationDuration = kThemeAnimationDuration,
- ThemeMode? themeMode = ThemeMode.system,
- String title = "",
- ThemeData? theme,
- AnimationStyle? themeAnimationStyle,
Implementation
const SuravApp({
super.key,
this.checkerboardOffscreenLayers = false,
this.debugShowCheckedModeBanner = false,
this.navigatorObservers = const <NavigatorObserver>[],
this.routes = const <String, WidgetBuilder>{},
this.showPerformanceOverlay = false,
this.showSemanticsDebugger = false,
this.actions,
this.builder,
this.checkerboardRasterCacheImages = false,
this.darkTheme,
this.color,
this.debugShowMaterialGrid = false,
this.highContrastDarkTheme,
this.highContrastTheme,
this.home,
this.initialRoute,
this.locale,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.localizationsDelegates,
this.onGenerateInitialRoutes,
this.onGenerateRoute,
this.onGenerateTitle,
this.onNavigationNotification,
this.onUnknownRoute,
this.restorationScopeId,
this.scrollBehavior,
this.shortcuts,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
this.themeAnimationCurve = Curves.linear,
this.themeAnimationDuration = kThemeAnimationDuration,
this.themeMode = ThemeMode.system,
this.title = "",
this.theme,
this.themeAnimationStyle,
});