Flutter:密码自动填充 [英] Flutter: password autofill

查看:497
本文介绍了Flutter:密码自动填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种在登录表单中启用密码文本字段自动填充的方法

I'm looking for a way to enable the autofill for a password textfield in a login form

作为备份解决方案,我正在考虑将密码保存在安全存储中,然后使用生物识别技术在执行新登录时恢复相同的密码.

As a backup solution, I was thinking to save the password in the secure storage, and then, with the biometrics, recovering the same password when a new login is performing.

但这不会涵盖iOS 12的所有自动填充密码体验. 例如,密码不会在多个设备上保存.

But this won't cover all the autofill password experiences from iOS 12. For example the password won't be saved across multiple devices.

有什么提示吗?

推荐答案

不支持自动填充.我知道有两个问题正在跟踪此问题(尽管与android相关).您可能要订阅/投票:

Auto-Fill is not yet supported in flutter out of the box. There are two issues i know of which are tracking this issue (although android related). You might want to subscribe/vote on those:

  • https://github.com/flutter/flutter/issues/13015
  • https://github.com/flutter/flutter/issues/14047

我担心通过第三方插件触发此功能并非易事.

I fear it won't be easy to trigger this functionality via a 3rd party plugin though.

关于安全存储的问题:如果您使用的是 flutter安全存储插件,该插件使用iOS上的钥匙串,应该通过iCloud在设备之间进行同步.

As for your question regarding secure storage: If you are using the flutter secure storage plugin which uses the keychain on iOS, it should be synced across devices via iCloud.

这篇关于Flutter:密码自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆