CarbonApp constructor

const CarbonApp({
  1. Key? key,
  2. required String title,
  3. CTheme? theme,
  4. GlobalKey<NavigatorState>? navigatorKey,
  5. Widget? home,
  6. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  7. String? initialRoute,
  8. RouteFactory? onGenerateRoute,
  9. InitialRouteListFactory? onGenerateInitialRoutes,
  10. RouteFactory? onUnknownRoute,
  11. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  12. TransitionBuilder? builder,
  13. GenerateAppTitle? onGenerateTitle,
  14. Color? color,
  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. Map<Type, Action<Intent>>? actions,
})

Implementation

const CarbonApp({
  Key? key,
  required this.title,
  this.theme,
  this.navigatorKey,
  this.home,
  this.routes = const <String, WidgetBuilder>{},
  this.initialRoute,
  this.onGenerateRoute,
  this.onGenerateInitialRoutes,
  this.onUnknownRoute,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.builder,
  this.onGenerateTitle,
  this.color,
  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.actions,
}) : super(key: key);