[英]How to save Login Info in flutter web-view app, so it is not required to login every-time
I have a simple webview app.我有一个简单的 webview 应用程序。 Whenever i open the app i have to provide the username and password,.
每当我打开应用程序时,我必须提供用户名和密码,。 is there any way to save username and password in local storage.
有没有办法将用户名和密码保存在本地存储中。
You can use Shared Preference to save data locally like user name and password.. Package: https://pub.dev/packages/shared_preferences .您可以使用 Shared Preference在本地保存数据,例如用户名和密码。 I am assuming you are having logout button to logout from app, till then shared preferences will store data and user will be logged in.
我假设您有注销按钮以从应用程序中注销,直到那时共享首选项将存储数据并且用户将登录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.