Theming
Configure light and dark themes with FlutterWind using MaterialApp-compatible theme settings.
FlutterWind forwards theme configuration to the underlying MaterialApp, so you can use standard Flutter theming patterns directly.
Basic theme setup
Use theme, darkTheme, and themeMode on FlutterWind:
Theme mode options
ThemeMode.system: follows OS themeThemeMode.light: always lightThemeMode.dark: always dark
Using utility classes with theme
Use dark variants to style widgets for dark mode:
You can combine this with your custom palette from flutterwind.yaml (see Configuration System).
Related pages
/getting-started/configuration/getting-started/features