adaptive_theme 3.0.0
adaptive_theme: ^3.0.0 copied to clipboard
Allows to change between light and dark theme dynamically and add system adaptive theme support.
3.0.0 #
- Upgrade to Flutter 3.
- Update & fix tests.
- Update AdaptiveThemeMode enum.
- Fix lints warnings & refactor code.
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
isDefaultoption fromsetThememethod. Default are meant to come fromAdaptiveThemewidget itself. - Added flutter lints.
- Fixed doc comments and typos.
- Added
resetand custom theme options in the example app. - Fixed
AdaptiveTheme'sbrightnessandthemegetters. - Fixed
CupertinoAdaptiveTheme'sbrightnessandthemegetters. - Added Tests.
2.2.0 #
- Added support for Cupertino theme.
2.1.0 #
2.0.0 #
- Improved documentation
- Stable null safety support
- Calling
AdaptiveTheme.of(context).toggleThemeMode()now will sequentially loop throughAdaptiveThemeMode.light,AdaptiveThemeMode.darkandAdaptiveThemeMode.systeminstead of justAdaptiveThemeMode.lightandAdaptiveThemeMode.dark.
2.0.0-nullsafety.1 #
- migrate to null safety
1.1.0 #
- Removed hard coded
shared_preferencesversion. - Hide public constructors for
ThemePreferences. AdaptiveTheme.of()now returns instance ofAdaptiveThemeManagerinstead ofAdaptiveThemeStateto 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.