diff --git a/lib/pages/login/view.dart b/lib/pages/login/view.dart index 99d3d5dd2..26f859d3c 100644 --- a/lib/pages/login/view.dart +++ b/lib/pages/login/view.dart @@ -208,6 +208,7 @@ class _LoginPageState extends State { keyboardType: TextInputType.visiblePassword, inputFormatters: [FilteringTextInputFormatter.deny(RegExp(r"\s"))], controller: _loginPageCtr.passwordTextController, + autofillHints: [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 22d77708d..81f4f2b43 100644 --- a/lib/pages/webdav/view.dart +++ b/lib/pages/webdav/view.dart @@ -64,6 +64,7 @@ class _WebDavSettingPageState extends State { const SizedBox(height: 20), TextField( controller: _passwordCtr, + autofillHints: [AutofillHints.password], decoration: const InputDecoration( labelText: '密码', border: OutlineInputBorder(), diff --git a/lib/tcp/live.dart b/lib/tcp/live.dart index c1a9ebf4d..9f50be1eb 100644 --- a/lib/tcp/live.dart +++ b/lib/tcp/live.dart @@ -289,7 +289,7 @@ class LiveMessageStream { eventListeners.add(func); } - Future close() async { + void close() { heartBeat = false; eventListeners.clear(); _socketSubscription?.cancel();