GetMaterialApp constructor

const GetMaterialApp({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  4. Widget? home,
  5. String? initialRoute,
  6. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  7. TransitionBuilder? builder,
  8. TextDirection? textDirection,
  9. String title = '',
  10. GenerateAppTitle? onGenerateTitle,
  11. Color? color,
  12. ThemeData? theme,
  13. ThemeData? darkTheme,
  14. ThemeMode themeMode = ThemeMode.system,
  15. Locale? locale,
  16. Iterable<LocalizationsDelegate>? localizationsDelegates,
  17. LocaleListResolutionCallback? localeListResolutionCallback,
  18. LocaleResolutionCallback? localeResolutionCallback,
  19. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  20. bool debugShowMaterialGrid = false,
  21. bool showPerformanceOverlay = false,
  22. bool checkerboardRasterCacheImages = false,
  23. bool checkerboardOffscreenLayers = false,
  24. bool showSemanticsDebugger = false,
  25. bool debugShowCheckedModeBanner = true,
  26. Map<LogicalKeySet, Intent>? shortcuts,
  27. ScrollBehavior? scrollBehavior,
  28. CustomTransition? customTransition,
  29. VoidCallback? onInit,
  30. VoidCallback? onReady,
  31. VoidCallback? onDispose,
  32. ValueChanged<Routing?>? routingCallback,
  33. Transition? defaultTransition,
  34. List<GetPage>? getPages,
  35. bool? opaqueRoute,
  36. bool? enableLog = kDebugMode,
  37. LogWriterCallback? logWriterCallback,
  38. bool? popGesture,
  39. Duration? transitionDuration,
  40. bool? defaultGlobalState,
  41. SmartManagement smartManagement = SmartManagement.full,
  42. List<Binding> binds = const [],
  43. GetPage? unknownRoute,
  44. ThemeData? highContrastTheme,
  45. ThemeData? highContrastDarkTheme,
  46. Map<Type, Action<Intent>>? actions,
})

Implementation

const GetMaterialApp({
  super.key,
  this.navigatorKey,
  this.scaffoldMessengerKey,
  this.home,
  this.initialRoute,
  List<NavigatorObserver> this.navigatorObservers =
      const <NavigatorObserver>[],
  this.builder,
  this.textDirection,
  this.title = '',
  this.onGenerateTitle,
  this.color,
  this.theme,
  this.darkTheme,
  this.themeMode = ThemeMode.system,
  this.locale,
  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.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.binds = const [],
  this.unknownRoute,
  this.highContrastTheme,
  this.highContrastDarkTheme,
  this.actions,
});