shared_preferences_macos 0.0.2-nullsafety copy "shared_preferences_macos: ^0.0.2-nullsafety" to clipboard
shared_preferences_macos: ^0.0.2-nullsafety copied to clipboard

discontinuedreplaced by: shared_preferences_foundation
outdated

macOS implementation of the shared_preferences plugin.

shared_preferences_macos #

The macos implementation of shared_preferences.

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 0.0.y+z. Please use 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

Usage #

Import the package #

This package has been endorsed, meaning that you only need to add shared_preferences as a dependency in your pubspec.yaml. It will be automatically included in your app when you depend on package:shared_preferences.

This is what the above means to your pubspec.yaml:

...
dependencies:
  ...
  shared_preferences: ^0.5.6
  ...

If you wish to use the macos package only, you can add shared_preferences_macos as a dependency:

...
dependencies:
  ...
  shared_preferences_macos: ^0.0.1
  ...
4
likes
0
points
109k
downloads

Publisher

verified publisherflutter.dev

Weekly Downloads

macOS implementation of the shared_preferences plugin.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shared_preferences_platform_interface

More

Packages that depend on shared_preferences_macos