The macos implementation of
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 ...
- Update README.
- Remove unused onMethodCall method.
- Add an android/ folder with no-op implementation to workaround https://github.com/flutter/flutter/issues/46898.
- Initial open source release.
Demonstrates how to use the shared_preferences plugin.
Getting Started #
For help getting started with Flutter, view our online documentation.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: shared_preferences_macos: ^0.0.1+3
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.0
- pana: 0.13.4
- Flutter: 1.12.13+hotfix.5
Maintenance issues and suggestions
No valid SDK. (-20 points)
The analysis could not detect a valid SDK that can use this package.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
The package description is too short. (-6 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.