- 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.
- Added support for Cupertino theme.
- Fixed #18 - Dark theme not working properly on all platforms.
- Fixed #16 - get theme and get darkTheme returns the same theme depended on mode
- Added #15 - Notify listener when changing theme mode
- Improved documentation
- Stable null safety support
- Calling
AdaptiveTheme.of(context).toggleThemeMode()now will sequentially loop throughAdaptiveThemeMode.light,AdaptiveThemeMode.darkandAdaptiveThemeMode.systeminstead of justAdaptiveThemeMode.lightandAdaptiveThemeMode.dark.
- migrate to null safety
- Removed hard coded
shared_preferencesversion. - Hide public constructors for
ThemePreferences. AdaptiveTheme.of()now returns instance ofAdaptiveThemeManagerinstead ofAdaptiveThemeStateto set restrictions for accessing state directly.
- add option to get previous theme mode on app startup
- add option to silently update theme without notifying. Useful when chaining multiple changes.
- 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.