adaptive_theme 3.7.2
adaptive_theme: ^3.7.2 copied to clipboard
Allows to change between light and dark theme dynamically and add system adaptive theme support.
3.7.2 #
- Migrate Shared Preferences usage to new Async API.
- Add
AdaptiveTheme.read(context)method to read current theme without creating a dependency on it.
3.7.1+2 #
- Re-generate
example/webdirectory with latest Flutter version. - Bump up
shared_preferencesdependency's minimum constraints to2.5.0. - Fix imports for
Brightness.
3.7.1+1 #
- Fix imports.
3.7.1 #
- Code cleanup.
- Remove deprecated class name usage from docs.
3.7.0 #
- [BREAKING] Remove deprecated
CupertinoAdaptiveThemeManager. UseAdaptiveThemeManager<CupertinoThemeData>instead. - [BREAKING] Require Flutter
3.27.0or higher: Replace deprecated use ofwithOpacitywithwithValues. - Add
overrideModeparameter toAdaptiveThemeandCupertinoAdaptiveThemeto override theme mode manually. - Fix unnecessary material imports.
- Update missing docs for source code.
3.6.0 #
- Migrate
DebugFloatingThemeButtonto Material 3. - Expose
DebugFloatingThemeButtonas a public widget for extensions to work with it.
3.5.0 #
- Add support for dynamically changing
debugShowFloatingThemeButtonstate usingAdaptiveTheme.of(context).setDebugShowFloatingThemeButton(bool)method. - Allow reading state of
debugShowFloatingThemeButtonusingAdaptiveTheme.of(context).debugShowFloatingThemeButton.
3.4.1 #
- Fix readme example code.
- Update example app for a simpler example code.
- Update example to use Material 3.
3.4.0 #
- FEAT: Add
useSystemflag fortoggleThemeModemethod to toggle between light, dark only when the flag is set to false. - Add more tests.
3.3.1 #
- Add pub topics to package metadata.
- Upgrade dependencies.
3.3.0 #
- Upgrade SDK constraints to Dart 3.0 and Flutter 3.10.0.
- Refactor deprecated api usages to new ones.
- Use
WidgetsBinding.instance.platformDispatcherinstead ofPlatformDispatcher.instancesince its recommended.
3.2.1 #
- Fix missing inherited widget for CupertinoAdaptiveTheme.
3.2.0 #
- Fix calling
AdaptiveTheme.oforCupertinoAdaptiveTheme.ofnot creating a dependency on it. - Add screenshots for pub.flutter-io.cn.
3.1.1 #
- Add
fix_data.yamlfor Flutter fix feature for deprecation quick fix suggestion. - Remove redundant code.
- Update copyright headers.
3.1.0 #
CupertinoAdaptiveThemeManageris now deprecated and replaced withAdaptiveThemeManager<CupertinoThemeData>in favor of supporting theming for other UI frameworks. (e.g. Fluent UI). This will be removed inv4.0.0.AdaptiveThemeManageris now generic typed where the generic type represents the type of the theme data object. ReplaceAdaptiveThemeManagerwithAdaptiveThemeManager<ThemeData>AdaptiveThemeManageris now a mixin instead of an abstract class to reduce code duplication.
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.
