gpt4 book ai didi

Flutter Autofill email and password like netflix(像Netflix一样自动填充电子邮件和密码)

转载 作者:bug小助手 更新时间:2023-10-24 17:54:52 55 4
gpt4 key购买 nike



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:

遵循以下三个步骤:



  1. Wrap your column of textfields and submit button with AutofillGroup().
    enter image description here

  2. In your TextFields,
    set autofillHints: property as [AutofillHints.username] or [AutofillHints.password] as required.
    enter image description here

  3. When user clicks on submit button call TextInput.finishAutofillContext();
    enter image description here


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

您好,请您修改您的答案,更详细地解释一下好吗?先谢谢你

55 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com