1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] TextField's do not fill from autofill suggestion

Discussão em 'Mobile' iniciado por Stack, Outubro 15, 2024 às 08:02.

  1. Stack

    Stack Membro Participativo

    When I'm on the login form, I get an account suggestion to autocomplete. But when I select it, the Textfields are not filled. Strangely, when I go to the passwords menu and select the same account that was suggested, it works.

    I've already tested it on iPad (iPadOS 17.5.1) and iPhone (iOS 17.5.1), and the behavior is the same.

    [​IMG]

    Code


    return const Scaffold(
    body: Center(
    child: AutofillGroup(
    child: SizedBox(
    width: 350,
    child: Column(
    mainAxisSize: MainAxisSize.min,
    children: [
    TextField(
    autofillHints: [AutofillHints.username],
    decoration: InputDecoration(hintText: "Username"),
    ),
    TextField(
    obscureText: true,
    autofillHints: [AutofillHints.password],
    decoration: InputDecoration(hintText: "Password"),
    ),
    ElevatedButton(
    onPressed: TextInput.finishAutofillContext,
    child: Text("Log In")
    )
    ],
    ),
    )
    ),
    ),
    );

    Continue reading...

Compartilhe esta Página