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(),