Skip to content
pubscout

flutter_session_manager

1.0.3, released 5 years ago by an unverified publisher

Easy to use session storage wrapper for Flutter apps

WASM-readyUnverified publisher
$ flutter pub add flutter_session_manager
Source repository

What it does

Provides a session wrapper to store, retrieve, update, and manage session data and objects in Flutter. The session data persists throughout the app's lifetime using shared preferences.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to store basic session data or objects during an app's lifecycle
  • You want simple key-value session management with support for custom objects implementing toJson()

Skip it when

  • You need encrypted local storage for sensitive authentication tokens
  • You require complex relational querying or offline-first database synchronization

Strengths

  • Simple API for storing primitives and JSON-serializable objects
  • Supports session destruction, updates, and key validation

Weaknesses

  • Relies on shared preferences without built-in encryption
  • Limited feature set compared to comprehensive local database solutions

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Not documented

await SessionManager().set("name", "cool user");
dynamic id = await SessionManager().get("id");

Alternatives

Packages that do the same job and could replace flutter_session_manager.

Works with

Packages commonly used together with flutter_session_manager: ones it builds on, ones built on it, and its own family.