static_sharedpreferences 2.0.1 static_sharedpreferences: ^2.0.1 copied to clipboard
Package for reading and writing simple key-value pairs. This wraps the shared_preferences plugin from the Flutter Team.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add static_sharedpreferences
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
static_sharedpreferences: ^2.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:static_sharedpreferences/static_sharedpreferences.dart';