Effortless HTTP Cookie Management: Introducing a Flutter Plugin

shared_prefs_cookie_store

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.

📋 Features

  • 🕹 Simple and easy-to-use API
  • 💽 Uses SharedPreferences for persistent storage
  • ⌛ Supports asynchronous initialization
  • 🌐 Integrates seamlessly with the Dio networking library.

🖥 Installation

Use this package as a library

Run this command:

With Dart:

 $ dart pub add shared_prefs_cookie_store

With Flutter:

 $ 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:

import 'package:shared_prefs_cookie_store/shared_prefs_cookie_store.dart';

GitHub

View Github

Description of the image

Related Posts