You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TextField autofill for common user properties taken from iOS #33040
Autofill values that can be automatically retrieved from iOS.
Proposal
It'd be great to add a new property to TextField/TextFormField that will allow to control over iOS' textContentType field. For example it is handy to auto fill the user's name, email or phone number.
I thought that Flutter might already do this via keyboardType, but it looks like it's textContentType. This would probably mean adding a field to CupertinoTextField, passing it through to the engine, and then setting textContentType in the engine. That's doable and I think this is a very good feature to have.
There may be something equivalent to do for Android too.
Reacted by Andrey Gordeev, Nathan Den Herder and Juan Rodriguez
I have a suggestion of add TextContent.username this properity to let iOS to know that this is a filed of Username (beacuse password textcontenttype already known by ios secure text entry.)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
justinmc commentedon May 20, 2019
I thought that Flutter might already do this via
keyboardType, but it looks like it'stextContentType. This would probably mean adding a field to CupertinoTextField, passing it through to the engine, and then settingtextContentTypein the engine. That's doable and I think this is a very good feature to have.There may be something equivalent to do for Android too.
aaronraimist commentedon Jul 29, 2019
Related: #13015
Evsio0n commentedon Nov 21, 2019
#13878 flutter-team-archive/engine#13878
Evsio0n commentedon Nov 21, 2019
I have a suggestion of add TextContent.username this properity to let iOS to know that this is a filed of Username (beacuse password textcontenttype already known by ios secure text entry.)
justinmc commentedon Jan 28, 2020
I'm going to close this to focus all autofill discussion on #13015. @Evsio0n your PR is still being mentioned over there.
github-actions commentedon Aug 23, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.