flutter_themed 1.2.0
flutter_themed: ^1.2.0 copied to clipboard
Theme switching for Flutter apps. Supports light, dark, and custom themes with optional persistence.
Changelog #
1.0.0 #
- Initial version.
1.0.0+1 #
- Updated documentation.
1.0.0+2 #
- Updated documentation.
1.0.0+3 #
- Improved package description for clarity.
1.1.0 #
Added #
isDarkMode— returnstrueif the built-in dark theme is activeisLightMode— returnstrueif the built-in light theme is activeisCustomTheme— returnstrueif a custom theme is currently activeisActiveCustomTheme(String name)— returnstrueif the specified custom theme is currently active
Changed #
toggleThemenow switches to the nearest built-in theme based onBrightnesswhen a custom theme is active, instead of always defaulting to light
1.2.0 #
Added #
ThemedApp.router— named constructor that wrapsMaterialApp.router, enabling full compatibility with anyRouterConfigimplementation (go_router, auto_route, etc.)- No dependency on any routing package —
flutter_themeduses Flutter's nativeRouterConfiginterface
Changed #
- Updated FAQ:
ThemedAppnow supports bothMaterialAppandMaterialApp.router