You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install your fork, but I have this error: Because every version of dynamic_theme from git depends on shared_preferences >=2.0.8 which requires SDK version >=2.14.0 <3.0.0, dynamic_theme from git is forbidden.
My company project has Dart >=2.12.
Could you downgrade shared_preferences to 2.0.7?
I suggest you to make another version of this package that supports Dart >=2.14
Hi @guillempuche,
I've changed the dependency from shared_preferences: ^2.0.9 to shared_preferences: ">=2.0.0 <3.0.0" which should fix your issue. Note that you can also use dependency_overrides in your pubspec.yaml to force the use of a specific version of shared_preferences:
dependencies:
# my dependenciesdependency_overrides:
shared_preferences: 2.0.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #63
2.0.0ThemeModeinstead ofBrightness(Fix Is it possible to add a system theme option? #49).ThemedWidgetBuilder themedWidgetBuildertakes now the following parameters:BuildContext, ThemeMode, ThemeData.dataparameter is now optional and has the typeThemeDataWithThemeModeBuilder.defaultBrightnessbecamedefaultThemeModeand use by defaultThemeMode.system.loadBrightnessOnStartbecameloadThemeOnStart.package:dynamic_theme/dynamic_theme.dartfor bothDynamicThemeandBrightnessSwitcherDialog.