auto fill

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-14 21:12:33 +08:00
parent 553be52260
commit 026e40855c
3 changed files with 3 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ class _LoginPageState extends State<LoginPage> {
keyboardType: TextInputType.visiblePassword, keyboardType: TextInputType.visiblePassword,
inputFormatters: [FilteringTextInputFormatter.deny(RegExp(r"\s"))], inputFormatters: [FilteringTextInputFormatter.deny(RegExp(r"\s"))],
controller: _loginPageCtr.passwordTextController, controller: _loginPageCtr.passwordTextController,
autofillHints: [AutofillHints.password],
decoration: InputDecoration( decoration: InputDecoration(
prefixIcon: const Icon(Icons.password), prefixIcon: const Icon(Icons.password),
border: const UnderlineInputBorder(), border: const UnderlineInputBorder(),

View File

@@ -64,6 +64,7 @@ class _WebDavSettingPageState extends State<WebDavSettingPage> {
const SizedBox(height: 20), const SizedBox(height: 20),
TextField( TextField(
controller: _passwordCtr, controller: _passwordCtr,
autofillHints: [AutofillHints.password],
decoration: const InputDecoration( decoration: const InputDecoration(
labelText: '密码', labelText: '密码',
border: OutlineInputBorder(), border: OutlineInputBorder(),

View File

@@ -289,7 +289,7 @@ class LiveMessageStream {
eventListeners.add(func); eventListeners.add(func);
} }
Future<void> close() async { void close() {
heartBeat = false; heartBeat = false;
eventListeners.clear(); eventListeners.clear();
_socketSubscription?.cancel(); _socketSubscription?.cancel();