The macos implementation of
Please set your constraint to
shared_preferences_macos: '>=0.0.y+x <2.0.0'
Backward compatible 1.0.0 version is coming
The plugin has reached a stable API, we guarantee that version
1.0.0 will be backward compatible with
shared_preferences_macos: '>=0.0.y+x <2.0.0' as your dependency constraint to allow a smoother ecosystem migration.
For more details see: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
Import the package
This package has been endorsed, meaning that you only need to add
as a dependency in your
pubspec.yaml. It will be automatically included in your app
when you depend on
This is what the above means to your
... dependencies: ... shared_preferences: ^0.5.6 ...
If you wish to use the macos package only, you can add
shared_preferences_macos as a
... dependencies: ... shared_preferences_macos: ^0.0.1 ...