adaptive_theme 2.3.1 copy "adaptive_theme: ^2.3.1" to clipboard
adaptive_theme: ^2.3.1 copied to clipboard

Allows to change between light and dark theme dynamically and add system adaptive theme support.

2.3.1 #

  • Fixed Material theme not updating on system theme change.
  • Updated example android project.

2.3.0 #

  • Fixed Cupertino theme not changing when on system mode.
  • Internal code cleanup.
  • Removed isDefault option from setTheme method. Default are meant to come from AdaptiveTheme widget itself.
  • Added flutter lints.
  • Fixed doc comments and typos.
  • Added reset and custom theme options in the example app.
  • Fixed AdaptiveTheme's brightness and theme getters.
  • Fixed CupertinoAdaptiveTheme's brightness and theme getters.
  • Added Tests.

2.2.0 #

  • Added support for Cupertino theme.

2.1.1 #

  • Fixed #18 - Dark theme not working properly on all platforms.

2.1.0 #

  • Fixed #16 - get theme and get darkTheme returns the same theme depended on mode
  • Added #15 - Notify listener when changing theme mode

2.0.0 #

  • Improved documentation
  • Stable null safety support
  • Calling AdaptiveTheme.of(context).toggleThemeMode() now will sequentially loop through AdaptiveThemeMode.light, AdaptiveThemeMode.dark and AdaptiveThemeMode.system instead of just AdaptiveThemeMode.light and AdaptiveThemeMode.dark.

2.0.0-nullsafety.1 #

  • migrate to null safety

1.1.0 #

  • Removed hard coded shared_preferences version.
  • Hide public constructors for ThemePreferences.
  • AdaptiveTheme.of() now returns instance of AdaptiveThemeManager instead of AdaptiveThemeState to set restrictions for accessing state directly.

1.0.0 #

  • add option to get previous theme mode on app startup

0.1.1 #

  • add option to silently update theme without notifying. Useful when chaining multiple changes.

0.1.0 #

  • Supports theme modes: light, dart, system default.
  • Persists theme modes across app restarts.
  • Allows to toggle theme mode between light and dark.
  • Allows to set default theme.
  • Allows to reset to default theme.
888
likes
140
points
40.3k
downloads

Publisher

verified publisherbirju.dev

Weekly Downloads

Allows to change between light and dark theme dynamically and add system adaptive theme support.

Repository (GitHub)
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on adaptive_theme