Wednesday, June 5, 2024
HomeiOS Developmentios - TextField's don't fill from autofill suggestion

ios – TextField’s don’t fill from autofill suggestion


Once I’m on the login kind, I get an account suggestion to autocomplete. However after I choose it, the Textfields usually are not crammed.
Unusually, after I go to the passwords menu and choose the identical account that was recommended, it really works.

I’ve already examined it on iPad and iPhone, and the conduct is similar.

enter image description here

Code

return const Scaffold(
  physique: Middle(
    baby: AutofillGroup(
      baby: SizedBox(
        width: 350,
        baby: Column(
          mainAxisSize: MainAxisSize.min,
          youngsters: [
            TextField(
              autofillHints: [AutofillHints.username],
              ornament: InputDecoration(hintText: "Username"),
            ),
            TextField(
              obscureText: true,
              autofillHints: [AutofillHints.password],
              ornament: InputDecoration(hintText: "Password"),
            ),
            ElevatedButton(
              onPressed: TextInput.finishAutofillContext,
              baby: Textual content("Log In")
            )
          ],
        ),
      )
    ),
  ),
);



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments