GetxApp constructor
const
GetxApp({
- Key? key,
- Size designSize = ScreenUtil.defaultSize,
- bool splitScreenMode = false,
- bool minTextAdapt = false,
- bool useInheritedMediaQuery = false,
- bool ensureScreenSize = false,
- bool enableScaleWH()?,
- bool enableScaleText()?,
- Iterable<
String> ? responsiveWidgets, - Iterable<
String> ? excludeWidgets, - double fontSizeResolver() = FontSizeResolvers.width,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - Widget? home,
- Map<
String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{}, - String? initialRoute,
- Route? onGenerateRoute()?,
- List<
Route> onGenerateInitialRoutes()?, - Route? onUnknownRoute()?,
- TextDirection? textDirection,
- String title = '',
- String onGenerateTitle()?,
- Color? color,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- Locale? locale,
- Locale? fallbackLocale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - Locale? localeListResolutionCallback()?,
- Locale? 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, - ScrollBehavior? scrollBehavior,
- CustomTransition? customTransition,
- Map<
String, Map< ? translationsKeys,String, String> > - Translations? translations,
- void onInit()?,
- void onReady()?,
- void onDispose()?,
- void routingCallback()?,
- Transition? defaultTransition,
- List<
GetPage> ? getPages, - bool? opaqueRoute,
- bool? enableLog = kDebugMode,
- void logWriterCallback(})?,
- bool? popGesture,
- Duration? transitionDuration,
- bool? defaultGlobalState,
- SmartManagement smartManagement = SmartManagement.full,
- Bindings? initialBinding,
- GetPage? unknownRoute,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- Map<
Type, Action< ? actions,Intent> > - 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,
});