Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null safety problem #38

Open
danielle-h opened this issue Dec 12, 2021 · 3 comments
Open

Null safety problem #38

danielle-h opened this issue Dec 12, 2021 · 3 comments

Comments

@danielle-h
Copy link

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
Copy link

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

@ZacharyHandshoe
Copy link

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
Copy link
Author

Thank you, I will try that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants