barnabasbartha / shared_preferences_settings

Flutter Settings Screen with Shared Preferences
MIT License
71 stars 34 forks source link

Null safety problem #38

Open danielle-h opened 2 years ago

danielle-h commented 2 years ago

When trying to use in my app, I got the following issues:

Because shared_preferences_settings >=1.2.0 depends on shared_preferences ^0.5.6+3 and my_app3 depends on 
shared_preferences ^2.0.6, shared_preferences_settings >=1.2.0 is forbidden.

and after downgrading shared_preferences, I get the following build error:

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

- package:shared_preferences
- package:shared_preferences_settings
- package:shared_preferences_platform_interface
- package:rxdart

- package:flutter_colorpicker

Any help would be most appreciated.

ZacharyHandshoe commented 2 years ago

I have run into the same exact issue here. Have you found a resolution?

ZacharyHandshoe commented 2 years ago

Hello, I was able to resolve this on my end by making shared_preferences 2.0.8 in my pubspec.yaml file. pubspec.yaml shared_preferences: ^2.0.8

danielle-h commented 2 years ago

Thank you, I will try that