A Flutter shared preferences plugin for managing HTTP cookies. This plugin provides a straightforward approach to managing cookies in Flutter applications using SharedPreferences as a storage medium while ensuring cookie persistence.
- 🕹 Simple and easy-to-use API
- 💽 Uses SharedPreferences for persistent storage
- ⌛ Supports asynchronous initialization
- 🌐 Integrates seamlessly with the Dio networking library.
Use this package as a library
Run this command:
$ dart pub add shared_prefs_cookie_store
$ flutter pub add shared_prefs_cookie_store
This will add a line like this to your package’s pubspec.yaml (and run an implicit dart pub get):
dependencies: shared_prefs_cookie_store: ^latest_version
Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it Now in your Dart code, you can use: