FlutterWind constructor

const FlutterWind({
  1. Key? key,
  2. Widget? child,
  3. Widget? loadingWidget,
  4. bool showDevTools = false,
  5. Color? devToolsBackgroundColor,
  6. Color? devToolsTextColor,
  7. bool showFps = true,
  8. bool showMemoryUsage = true,
  9. bool showBuildTimes = true,
  10. ThemeData? theme,
  11. ThemeData? darkTheme,
  12. ThemeMode? themeMode,
  13. String? title,
  14. Color? color,
  15. Locale? locale,
  16. Iterable<LocalizationsDelegate>? localizationsDelegates,
  17. Iterable<Locale>? supportedLocales,
  18. bool debugShowCheckedModeBanner = false,
  19. bool debugShowMaterialGrid = false,
  20. bool useInheritedMediaQuery = false,
  21. Map<ShortcutActivator, Intent>? shortcuts,
  22. Map<Type, Action<Intent>>? actions,
  23. String? restorationScopeId,
  24. ScrollBehavior? scrollBehavior,
  25. Widget? home,
  26. String? initialRoute,
  27. List<Route> onGenerateInitialRoutes(
    1. String
    )?,
  28. Route onGenerateRoute(
    1. RouteSettings
    )?,
})

Implementation

const FlutterWind({
  super.key,
  this.child,
  this.loadingWidget,
  this.showDevTools = false,
  this.devToolsBackgroundColor,
  this.devToolsTextColor,
  this.showFps = true,
  this.showMemoryUsage = true,
  this.showBuildTimes = true,
  this.theme,
  this.darkTheme,
  this.themeMode,
  this.title,
  this.color,
  this.locale,
  this.localizationsDelegates,
  this.supportedLocales,
  this.debugShowCheckedModeBanner = false,
  this.debugShowMaterialGrid = false,
  this.useInheritedMediaQuery = false,
  this.shortcuts,
  this.actions,
  this.restorationScopeId,
  this.scrollBehavior,
  this.home,
  this.initialRoute,
  this.onGenerateInitialRoutes,
  this.onGenerateRoute,
}) : assert(
        (home == null &&
                initialRoute != null &&
                onGenerateInitialRoutes != null &&
                onGenerateRoute != null) ||
            (home != null &&
                initialRoute == null &&
                onGenerateInitialRoutes == null &&
                onGenerateRoute == null),
        'Either provide home widget or routing configuration, but not both',
      );