From e54a0f127fd16f1a9ea8efeb495efe086472b9aa Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 15 May 2025 18:16:26 +0800 Subject: [PATCH] auto fill Signed-off-by: bggRGjQaUbCoE --- lib/pages/login/view.dart | 2 +- lib/pages/webdav/view.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/login/view.dart b/lib/pages/login/view.dart index 26f859d3c..fc0f3fd7d 100644 --- a/lib/pages/login/view.dart +++ b/lib/pages/login/view.dart @@ -208,7 +208,7 @@ class _LoginPageState extends State { keyboardType: TextInputType.visiblePassword, inputFormatters: [FilteringTextInputFormatter.deny(RegExp(r"\s"))], controller: _loginPageCtr.passwordTextController, - autofillHints: [AutofillHints.password], + autofillHints: const [AutofillHints.password], decoration: InputDecoration( prefixIcon: const Icon(Icons.password), border: const UnderlineInputBorder(), diff --git a/lib/pages/webdav/view.dart b/lib/pages/webdav/view.dart index 81f4f2b43..5eff31034 100644 --- a/lib/pages/webdav/view.dart +++ b/lib/pages/webdav/view.dart @@ -64,7 +64,7 @@ class _WebDavSettingPageState extends State { const SizedBox(height: 20), TextField( controller: _passwordCtr, - autofillHints: [AutofillHints.password], + autofillHints: const [AutofillHints.password], decoration: const InputDecoration( labelText: '密码', border: OutlineInputBorder(),