flutter_session 0.0.7 icon indicating copy to clipboard operation
flutter_session: ^0.0.7 copied to clipboard

[pending analysis]

A simple session package for Flutter that works on both mobile, web and (hopefully) desktop apps.

flutter_session #

Adds session support to Flutter. Works with mobile, web and (hopefully) desktop builds.

Write values to the session: #

await FlutterSession().set("token", myJWTToken);

or

var session = FlutterSession();
await session.set("token", myJWTToken);
await session.set("name", "jhourlad");
await session.set("id", 1);
await session.set("price", 10.50);
await session.set("isOK", true);

Read values from the session: #

dynamic token = await FlutterSession().get("token");

Session persists throughout the app's lifetime.

209
likes
--
pub points
92%
popularity

Publisher

unverified uploader

A simple session package for Flutter that works on both mobile, web and (hopefully) desktop apps.

Repository (GitHub)
View/report issues

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on flutter_session