Can anyone please show me how can i implement password manager like netflix in flutter, Like if user clicking on email textfield then show stored email and password like netflix does.
Thank You.
有没有人能告诉我如何像Netflix一样实现密码管理器,比如如果用户点击电子邮件文本框,就会像Netflix那样显示存储的电子邮件和密码。谢谢。
更多回答
See this comment on GitHub for some relevant information.
有关相关信息,请参阅GitHub上的这条评论。
优秀答案推荐
To enable autofill for username and password,
要启用用户名和密码的自动填充,请执行以下操作
Follow these three steps:
遵循以下三个步骤:
- Wrap your column of textfields and submit button with AutofillGroup().
- In your TextFields,
set autofillHints: property as [AutofillHints.username] or [AutofillHints.password] as required.
- When user clicks on submit button call TextInput.finishAutofillContext();
For detail explanation, see here.
有关详细说明,请参阅此处。
You can pass autofillHints to textfield
您可以将自动填充提示传递给文本字段
TextField1(
autofillHints: [AutofillHints.email],
),
TextField2(
autofillHints: [AutofillHints.password],
),
Use TextEditingControl
to control the text.
使用TextEditingControl控制文本。
更多回答
hi, please could you edit your answer to explain in more detail? thank you in advance
您好,请您修改您的答案,更详细地解释一下好吗?先谢谢你
我是一名优秀的程序员,十分优秀!