在开发 Flutter 项目时,为适配密码管理器如 1Password,需要设置关联域名并配置 apple-app-site-association 文件。通过 Xcode 添加域名,并在网站根目录放置认证文件,确保包含 webcredentials 字段。使用 Flutter 的 AutofillGroup 组件和 autofillHints 属性,指明自动填写的字段,以实现顺利登录。
完成下面两步后,将自动完成登录并继续当前操作。