Norbert515 / dynamic_theme

Dynamically changing your theme without hassle
MIT License
322 stars 68 forks source link

Issue #63 #64

Open TesteurManiak opened 2 years ago

TesteurManiak commented 2 years ago

Fix #63

guillempuche commented 2 years ago

Nice work Guillaume!

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

TesteurManiak commented 2 years ago

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 dependencies
dependency_overrides:
  shared_preferences: 2.0.7
guillempuche commented 2 years ago

Thanks a lot for sharing your knowledge, Guillaume!

guillempuche commented 1 year ago

@Norbert515, could you update the package?

jackbrown1993 commented 1 year ago

@Norbert515, could you merge this, please?

freemansoft commented 1 year ago

+1 @Norbert515