flutter_form_builder icon indicating copy to clipboard operation
flutter_form_builder copied to clipboard

Auto-filling through a password manager ?

Open Sandai64 opened this issue 2 years ago • 2 comments

Hello, I am new to Flutter and as such, I have difficulties getting auto-filling through a password manager to work on a simple login page.

My page currently looks like this :

FormBuilder
(
    key: _loginFormKey,
    child: AutofillGroup
    (
        key: _loginFormKey,
        child: Column
        (
            children:
            [
                FormBuilderTextField
                (
                    name: 'field1',
                    keyboardType: TextInputType.emailAddress,
                    autofillHints: const <String>[AutofillHints.username],
                ),

                FormBuilderTextField
                (
                    name: 'field2',
                    keyboardType: TextInputType.visiblePassword,
                    autofillHints: const <String>[AutofillHints.password],
                    obscureText: true,
                ),
            ],
        ) // Column
    ) // AutoFillGroup
), // FormBuilder

Is there some property I missed that is causing auto-fill not to work or is the feature missing from the package ? Should I implement this using a Flutter form from scratch ?

For my tests I used Bitwarden, it was only capable of filling the username field and not the password.

If you have any more questions, please ask.

Sandai64 avatar Feb 11 '22 13:02 Sandai64

Good question. Actually, I would have to search which Flutter component support such feature.

WilliamCunhaCardoso avatar Feb 23 '22 15:02 WilliamCunhaCardoso

Any updates here? I have the same problem and I don't think @erwangse and me are the only two people who need this feature.

FrazeColder avatar Mar 12 '22 09:03 FrazeColder