GetxApp constructor

const GetxApp({
  1. Key? key,
  2. Size designSize = ScreenUtil.defaultSize,
  3. bool splitScreenMode = false,
  4. bool minTextAdapt = false,
  5. bool useInheritedMediaQuery = false,
  6. bool ensureScreenSize = false,
  7. bool enableScaleWH()?,
  8. bool enableScaleText()?,
  9. Iterable<String>? responsiveWidgets,
  10. Iterable<String>? excludeWidgets,
  11. double fontSizeResolver(
    1. num,
    2. ScreenUtil
    ) = FontSizeResolvers.width,
  12. GlobalKey<NavigatorState>? navigatorKey,
  13. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  14. Widget? home,
  15. Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{},
  16. String? initialRoute,
  17. Route? onGenerateRoute(
    1. RouteSettings
    )?,
  18. List<Route> onGenerateInitialRoutes(
    1. String
    )?,
  19. Route? onUnknownRoute(
    1. RouteSettings
    )?,
  20. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  21. TextDirection? textDirection,
  22. String title = '',
  23. String onGenerateTitle(
    1. BuildContext
    )?,
  24. Color? color,
  25. ThemeData? theme,
  26. ThemeData? darkTheme,
  27. ThemeMode? themeMode,
  28. Locale? locale,
  29. Locale? fallbackLocale,
  30. Iterable<LocalizationsDelegate>? localizationsDelegates,
  31. Locale? localeListResolutionCallback(
    1. List<Locale>?,
    2. Iterable<Locale>
    )?,
  32. Locale? localeResolutionCallback(
    1. Locale?,
    2. Iterable<Locale>
    )?,
  33. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  34. bool debugShowMaterialGrid = false,
  35. bool showPerformanceOverlay = false,
  36. bool checkerboardRasterCacheImages = false,
  37. bool checkerboardOffscreenLayers = false,
  38. bool showSemanticsDebugger = false,
  39. bool debugShowCheckedModeBanner = true,
  40. Map<LogicalKeySet, Intent>? shortcuts,
  41. ScrollBehavior? scrollBehavior,
  42. CustomTransition? customTransition,
  43. Map<String, Map<String, String>>? translationsKeys,
  44. Translations? translations,
  45. void onInit()?,
  46. void onReady()?,
  47. void onDispose()?,
  48. void routingCallback(
    1. Routing?
    )?,
  49. Transition? defaultTransition,
  50. List<GetPage>? getPages,
  51. bool? opaqueRoute,
  52. bool? enableLog = kDebugMode,
  53. void logWriterCallback(
    1. String, {
    2. bool isError,
    })?,
  54. bool? popGesture,
  55. Duration? transitionDuration,
  56. bool? defaultGlobalState,
  57. SmartManagement smartManagement = SmartManagement.full,
  58. Bindings? initialBinding,
  59. GetPage? unknownRoute,
  60. ThemeData? highContrastTheme,
  61. ThemeData? highContrastDarkTheme,
  62. Map<Type, Action<Intent>>? actions,
  63. TransitionBuilder? builder,
})

Implementation

const GetxApp({
  super.key,
  this.designSize = ScreenUtil.defaultSize,
  this.splitScreenMode = false,
  this.minTextAdapt = false,
  this.useInheritedMediaQuery = false,
  this.ensureScreenSize = false,
  this.enableScaleWH,
  this.enableScaleText,
  this.responsiveWidgets,
  this.excludeWidgets,
  this.fontSizeResolver = FontSizeResolvers.width,
  this.navigatorKey,
  this.scaffoldMessengerKey,
  this.home,
  this.routes = const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.textDirection,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.theme,
  this.darkTheme,
  this.themeMode,
  this.locale,
  this.fallbackLocale,
  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.scrollBehavior,
  this.customTransition,
  this.translationsKeys,
  this.translations,
  this.onInit,
  this.onReady,
  this.onDispose,
  this.routingCallback,
  this.defaultTransition,
  this.getPages,
  this.opaqueRoute,
  this.enableLog = kDebugMode,
  this.logWriterCallback,
  this.popGesture,
  this.transitionDuration,
  this.defaultGlobalState,
  this.smartManagement = SmartManagement.full,
  this.initialBinding,
  this.unknownRoute,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.actions,
  this.builder,
});