]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commitdiff
add autofill hints to form fields
authorTim Marx <t.marx@proxmox.com>
Mon, 14 Sep 2020 10:42:23 +0000 (12:42 +0200)
committerTim Marx <t.marx@proxmox.com>
Mon, 14 Sep 2020 10:42:23 +0000 (12:42 +0200)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
lib/proxmox_login_form.dart

index bb5c48b4b48cb12fd93bd5213fbfb794685852c4..1ba70c471e5dcf54e751b06bb86779f16f5a0fd5 100644 (file)
@@ -98,6 +98,7 @@ class _ProxmoxLoginFormState extends State<ProxmoxLoginForm> {
             }
             return null;
           },
+          autofillHints: [AutofillHints.username],
         ),
         DropdownButtonFormField(
           decoration: InputDecoration(icon: Icon(Icons.domain)),
@@ -133,6 +134,7 @@ class _ProxmoxLoginFormState extends State<ProxmoxLoginForm> {
                 return null;
               },
               onFieldSubmitted: (value) => widget.onPasswordSubmitted(),
+              autofillHints: [AutofillHints.password],
             ),
             Align(
               alignment: Alignment.bottomRight,