Skip to content

TextField autofill for common user properties taken from iOS #33040

Closed

Description

@agordeev

Use case

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.

More info:

https://developer.apple.com/documentation/uikit/uitextcontenttype
https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_a_text_input_view

Activity

  1. added
    p: cupertino_uicupertino_ui package in flutter/packages
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    platform-iosiOS applications specifically
    a: text inputEntering text in a text field or keyboard related problems
    on May 20, 2019
  2. justinmc commented on May 20, 2019

    @justinmc
    Contributor

    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.

  3. aaronraimist commented on Jul 29, 2019

    @aaronraimist

    Related: #13015

  4. Evsio0n commented on Nov 21, 2019

    @Evsio0n
  5. Evsio0n commented on Nov 21, 2019

    @Evsio0n

    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.)

  6. justinmc commented on Jan 28, 2020

    @justinmc
    Contributor

    I'm going to close this to focus all autofill discussion on #13015. @Evsio0n your PR is still being mentioned over there.

  7. github-actions commented on Aug 23, 2021

    @github-actions

    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.

  8. locked as resolved and limited conversation to collaborators on Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesplatform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions