shared_preferences_settings icon indicating copy to clipboard operation
shared_preferences_settings copied to clipboard

Null safety problem

Open danielle-h opened this issue 3 years ago • 3 comments

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.

danielle-h avatar Dec 12 '21 12:12 danielle-h

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

ZacharyHandshoe avatar Dec 25 '21 20:12 ZacharyHandshoe

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

ZacharyHandshoe avatar Dec 25 '21 20:12 ZacharyHandshoe

Thank you, I will try that

danielle-h avatar Dec 28 '21 09:12 danielle-h