RuiApp constructor
const
RuiApp({
- Key? key,
- String? title = "",
- Widget? home,
- Map<
String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, - String? initialRoute,
- Future<
bool> appInit(- 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,
});