BaseApp constructor

const BaseApp({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. Widget? home,
  4. Map<String, WidgetBuilder>? routes = const <String, WidgetBuilder>{},
  5. String? initialRoute,
  6. RouteFactory? onGenerateRoute,
  7. InitialRouteListFactory? onGenerateInitialRoutes,
  8. RouteFactory? onUnknownRoute,
  9. List<NavigatorObserver>? navigatorObservers = const <NavigatorObserver>[],
  10. TransitionBuilder? builder,
  11. String title = '',
  12. GenerateAppTitle? onGenerateTitle,
  13. Color? color,
  14. Locale? locale,
  15. Iterable<LocalizationsDelegate>? localizationsDelegates,
  16. LocaleListResolutionCallback? localeListResolutionCallback,
  17. LocaleResolutionCallback? localeResolutionCallback,
  18. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  19. bool showPerformanceOverlay = false,
  20. bool checkerboardRasterCacheImages = false,
  21. bool checkerboardOffscreenLayers = false,
  22. bool showSemanticsDebugger = false,
  23. bool debugShowCheckedModeBanner = true,
  24. String? restorationScopeId,
  25. ScrollBehavior? scrollBehavior,
  26. BaseThemeData? baseTheme,
  27. ThemeData? lightTheme,
  28. ThemeData? darkTheme,
  29. Map<LogicalKeySet, Intent>? shortcuts,
  30. Map<LocalKey, Action<Intent>>? actions,
  31. bool withoutSplashOnCupertino = true,
  32. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  33. ThemeMode? themeMode = ThemeMode.system,
  34. bool useMaterial3 = true,
  35. bool useGetX = false,
  36. List<GetPage>? getPages,
  37. GetPage? unknownRoute,
  38. ValueChanged<Routing?>? routingCallback,
  39. Transition? defaultTransition,
  40. Locale? getxLocale,
  41. Locale? fallbackLocale,
  42. Translations? translations,
  43. Bindings? initialBinding,
  44. SmartManagement smartManagement = SmartManagement.full,
  45. bool enableLog = kDebugMode,
  46. LogWriterCallback? logWriterCallback,
  47. bool debugShowMaterialGrid = false,
  48. 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);