flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.59k stars 27.34k forks source link

GBoard's contact suggest feature does not show up for Flutter text input #72172

Open mehmetf opened 3 years ago

mehmetf commented 3 years ago

Internal: b/348443241

GBoard allows users to enable contact suggestions which take effect when someone is entering a name or a phone number. It seems this works for Web and Android native fields but not for Flutter. From customer:

We already tried TextField with keyboardType: TextInputType.phone, number, email, etc but still cannot see the suggestion chip.

mehmetf commented 3 years ago

https://help.republicwireless.com/hc/en-us/articles/360008651753-How-to-Enable-or-Disable-the-Suggestion-Strip-in-the-Google-Keyboard

goderbauer commented 3 years ago

/cc @LongCatIsLooong Do you know if the Autofill feature would help here? Or is this using a different mechanism?

LongCatIsLooong commented 3 years ago

Looks like that's the case, I added autofillHints: [AutofillHints.telephoneNumber], to a text field then my phone number showed up in a chip. Currently we infer keyboardType from autofillHints but not the other way around.