There is only one primary goal why developers need sessions and that is to be able to store information somewhere and make sure they persist and is accessible any time during the application’s lifetime. Too bad that at the time of writing, session is not yet natively supported in Flutter.
开发人员为什么需要会话只有一个主要目标,那就是能够将信息存储在某个地方,并确保它们持久存在并且在应用程序生命周期中的任何时间都可以访问。 太糟糕了,以至在撰写本文时,Flutter本身还不支持会话。
Coming in primarilly from a backend-dominated background, my journey to Flutter led me to develop Flutter Session, the easiest way to add session support to Flutter. It’s a light-weight and easy-to-use Dart package that makes it easy to add session functionality to Flutter as global and persistent store for session data and make sure they survive even after navigating to other pages.
从后端主导的背景开始,我到Flutter的旅程使我开发了Flutter Session ,这是向Flutter添加会话支持的最简单方法。 这是一个轻巧易用的Dart程序包,可以轻松地将会话功能添加到Flutter中,作为会话数据的全局存储和持久存储,并确保即使导航到其他页面也可以保留它们。
Let’s start.
开始吧。