NavigatorMaterialApp constructor

NavigatorMaterialApp({
  1. Key? key,
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  4. TransitionBuilder? builder,
  5. String title = '',
  6. Widget? home,
  7. GenerateAppTitle? onGenerateTitle,
  8. Color? color,
  9. ThemeData? theme,
  10. ThemeData? darkTheme,
  11. ThemeMode themeMode = ThemeMode.system,
  12. Locale? locale,
  13. Iterable<LocalizationsDelegate>? localizationsDelegates,
  14. LocaleListResolutionCallback? localeListResolutionCallback,
  15. LocaleResolutionCallback? localeResolutionCallback,
  16. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  17. bool debugShowMaterialGrid = false,
  18. bool showPerformanceOverlay = false,
  19. bool checkerboardRasterCacheImages = false,
  20. bool checkerboardOffscreenLayers = false,
  21. bool showSemanticsDebugger = false,
  22. bool debugShowCheckedModeBanner = true,
  23. Map<LogicalKeySet, Intent>? shortcuts,
  24. Map<Type, Action<Intent>>? actions,
  25. String? restorationScopeId,
})

Implementation

NavigatorMaterialApp({
  Key? key,
  GlobalKey<NavigatorState>? navigatorKey,
  List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  TransitionBuilder? builder,
  String title = '',
  Widget? home,
  GenerateAppTitle? onGenerateTitle,
  Color? color,
  ThemeData? theme,
  ThemeData? darkTheme,
  ThemeMode themeMode = ThemeMode.system,
  Locale? locale,
  Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates,
  LocaleListResolutionCallback? localeListResolutionCallback,
  LocaleResolutionCallback? 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,
  Map<Type, Action<Intent>>? actions,
  String? restorationScopeId,
}) : super(
          key: key,
          navigatorKey: navigatorKey,
          navigatorObservers: [...navigatorObservers],
          builder: (context, child) {
            if (builder != null) {
              return builder(context, ThrioNavigatorImplement.shared().builder(context, child));
            } else {
              return ThrioNavigatorImplement.shared().builder(context, child);
            }
          },
          title: title,
          onGenerateTitle: onGenerateTitle,
          initialRoute: '1 /',
          routes: {'1 /': (_) => home ?? const NavigatorHome()},
          color: color,
          theme: theme,
          darkTheme: darkTheme,
          themeMode: themeMode,
          locale: locale,
          localizationsDelegates: localizationsDelegates,
          localeListResolutionCallback: localeListResolutionCallback,
          localeResolutionCallback: localeResolutionCallback,
          supportedLocales: supportedLocales,
          debugShowMaterialGrid: debugShowMaterialGrid,
          showPerformanceOverlay: showPerformanceOverlay,
          checkerboardRasterCacheImages: checkerboardRasterCacheImages,
          checkerboardOffscreenLayers: checkerboardOffscreenLayers,
          showSemanticsDebugger: showSemanticsDebugger,
          debugShowCheckedModeBanner: debugShowCheckedModeBanner,
          shortcuts: shortcuts,
          actions: actions,
          restorationScopeId: restorationScopeId);