flutter_themed 1.3.0 copy "flutter_themed: ^1.3.0" to clipboard
flutter_themed: ^1.3.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 — returns true if the built-in dark theme is active
  • isLightMode — returns true if the built-in light theme is active
  • isCustomTheme — returns true if a custom theme is currently active
  • isActiveCustomTheme(String name) — returns true if the specified custom theme is currently active

Changed #

  • toggleTheme now switches to the nearest built-in theme based on Brightness when a custom theme is active, instead of always defaulting to light

1.2.0 #

Added #

  • ThemedApp.router — named constructor that wraps MaterialApp.router, enabling full compatibility with any RouterConfig implementation (go_router, auto_route, etc.)
  • No dependency on any routing package — flutter_themed uses Flutter's native RouterConfig interface

Changed #

  • Updated FAQ: ThemedApp now supports both MaterialApp and MaterialApp.router

1.3.0 #

Added #

  • followOsTheme({void Function(String themeName)? onThemeChanged}) — starts reacting to OS brightness changes automatically, switching between 'light' and 'dark' whenever the system theme changes. Applies the current OS theme immediately on call. Optional onThemeChanged callback is invoked after each automatic switch with the new theme name.
  • stopFollowingOsTheme() — stops reacting to OS brightness changes. The theme remains unchanged until manually switched.
  • isFollowingOsTheme — returns true if followOsTheme has been called and Themed is actively reacting to OS brightness changes.
  • ThemedApp(colorScheme:) / ThemedApp.router(colorScheme:) — optional ColorScheme parameter that overrides the color scheme of the active theme while keeping all other theme properties intact.
  • setDefaultDarkTheme() — convenience method, equivalent to setTheme('dark').
  • setDefaultLightTheme() — convenience method, equivalent to setTheme('light').
0
likes
160
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Theme switching for Flutter apps. Supports light, dark, and custom themes with optional persistence.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_themed