【发布时间】:2020-06-19 21:24:00
【问题描述】:
我在flutter web中创建了一个登录表单,当我登录时,chrome会检测到输入的密码,但只提供保存密码,而用户名保持空白。
Google 建议使用以下 HTML 表单,以便凭据管理器检测需要存储的凭据。
<form id="signup" method="post">
<input name="email" type="text" autocomplete="username email">
<input name="display-name" type="text" autocomplete="name">
<input name="password" type="password" autocomplete="new-password">
<input type="submit" value="Sign Up!">
</form>
在我的表单中,我同时使用了电子邮件和用户名,但 chrome 凭据管理器仍然无法检测到用户名。
我们如何在 Flutter Web 中创建带有自动完成标签的表单?
【问题讨论】:
-
github 中存在一个问题。所以可能需要一些时间来解决这个问题。关注这个issue
-
希望他们也能添加网络支持
-
问题附加了一个 platform-web 标签,这意味着它将被处理。查看该问题中的最后一条评论... :)
-
奇怪的是,用最新的flutter master channel框架,autocomplete字段设置正确,但是chrome还是不识别,有没有人试过这个?
标签: google-chrome flutter flutter-web