BaseApp constructor
const
BaseApp({
- Key? key,
- Widget? home,
- Map<
String, WidgetBuilder> ? routes = const <String, WidgetBuilder>{}, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- InitialRouteListFactory? onGenerateInitialRoutes,
- RouteFactory? onUnknownRoute,
- TransitionBuilder? builder,
- String title = '',
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')], - bool showPerformanceOverlay = false,
- bool checkerboardRasterCacheImages = false,
- bool checkerboardOffscreenLayers = false,
- bool showSemanticsDebugger = false,
- bool debugShowCheckedModeBanner = true,
- String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- BaseThemeData? baseTheme,
- ThemeData? lightTheme,
- ThemeData? darkTheme,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
LocalKey, Action< ? actions,Intent> > - bool withoutSplashOnCupertino = true,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - ThemeMode? themeMode = ThemeMode.system,
- bool useMaterial3 = true,
- bool useGetX = false,
- List<
GetPage> ? getPages, - GetPage? unknownRoute,
- ValueChanged<
Routing?> ? routingCallback, - Transition? defaultTransition,
- Locale? getxLocale,
- Locale? fallbackLocale,
- Translations? translations,
- Bindings? initialBinding,
- SmartManagement smartManagement = SmartManagement.full,
- bool enableLog = kDebugMode,
- LogWriterCallback? logWriterCallback,
- bool debugShowMaterialGrid = false,
- BaseParam? baseParam,
Implementation
const BaseApp({
Key? key,
this.navigatorKey,
this.home,
this.routes = const <String, WidgetBuilder>{},
this.initialRoute,
this.onGenerateRoute,
this.onGenerateInitialRoutes,
this.onUnknownRoute,
this.navigatorObservers = const <NavigatorObserver>[],
this.builder,
this.title = '',
this.onGenerateTitle,
this.color,
this.locale,
this.localizationsDelegates,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
this.showPerformanceOverlay = false,
this.checkerboardRasterCacheImages = false,
this.checkerboardOffscreenLayers = false,
this.showSemanticsDebugger = false,
this.debugShowCheckedModeBanner = true,
this.restorationScopeId,
this.scrollBehavior,
this.baseTheme,
this.lightTheme,
this.darkTheme,
this.shortcuts,
this.actions,
this.withoutSplashOnCupertino = true,
this.scaffoldMessengerKey,
this.themeMode = ThemeMode.system,
this.useMaterial3 = true,
this.useGetX = false,
this.getPages,
this.unknownRoute,
this.routingCallback,
this.defaultTransition,
this.getxLocale,
this.fallbackLocale,
this.translations,
this.initialBinding,
this.smartManagement = SmartManagement.full,
this.enableLog = kDebugMode,
this.logWriterCallback,
this.debugShowMaterialGrid = false,
BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);