RuiApp constructor

const RuiApp({
  1. Key? key,
  2. String? title = "",
  3. Widget? home,
  4. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  5. String? initialRoute,
  6. Future<bool> appInit(
    1. BuildContext? context
    )?,
})

Implementation

const RuiApp({
  super.key,
  super.title = "",
  super.home,
  super.routes,
  super.initialRoute,
  this.appInit,
  // super.scaffoldMessengerKey,
  // GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey,
  // Widget? home,
  // Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{},
  // String? initialRoute,
  // Route<dynamic>? Function(RouteSettings)? onGenerateRoute,
  // List<Route<dynamic>> Function(String)? onGenerateInitialRoutes,
  // Route<dynamic>? Function(RouteSettings)? onUnknownRoute,
  // bool Function(NavigationNotification)? onNavigationNotification,
  // List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  // Widget Function(BuildContext, Widget?)? builder,
  // String? title = '',
  // String Function(BuildContext)? onGenerateTitle,
  // Color? color,
  // ThemeData? theme,
  // ThemeData? darkTheme,
  // ThemeData? highContrastTheme,
  // ThemeData? highContrastDarkTheme,
  // ThemeMode? themeMode = ThemeMode.system,
  // Duration themeAnimationDuration = kThemeAnimationDuration,
  // Curve themeAnimationCurve = Curves.linear,
  // Locale? locale,
  // Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates,
  // Locale? Function(List<Locale>?, Iterable<Locale>)? localeListResolutionCallback,
  // Locale? Function(Locale?, Iterable<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<ShortcutActivator, Intent>? shortcuts,
  // Map<Type, Action<Intent>>? actions,
  // String? restorationScopeId,
  // ScrollBehavior? scrollBehavior,
  // bool useInheritedMediaQuery = false,
  // AnimationStyle? themeAnimationStyle,
});