Skip to content

[Feature Request] textVisiblePassword (Android) #31738

Closed

Description

@yuridiniz

On Android it is possible to get a Keyboard with letters and numbers visible at the same time through the property textVisiblePassword

In Flutter, we use a TextField with the property obscureText: true to get the password behavior, so there is no TextInputType relative to the password field, so we can not achieve the same effect when using the textVisiblePassword property

Sample

TextField(controller: textController, keyboardType: TextInputType.textWithNumber)

Expected behavior

keyboard_example

Activity

  1. added
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: new featureNothing broken; request for a new capability
    on Apr 29, 2019
  2. justinmc commented on Apr 29, 2019

    @justinmc
    Contributor

    Sounds like this would be a good addition to Flutter to me. We would need to add support for InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD into TextInputPlugin.java in the engine, and then tie it through to TextInputType in the framework. Should be a straightforward change.

  3. niktses commented on Jul 22, 2019

    @niktses

    Is there any update on this? I really need it to release my app

  4. justinmc commented on Jul 23, 2019

    @justinmc
    Contributor

    @niktses Support was added in the engine in flutter-team-archive/engine#9999, and this PR will add the input type to the framework when it's merged: #36695

  5. niktses commented on Jul 23, 2019

    @niktses

    Thanks a lot

  6. justinmc commented on Jul 29, 2019

    @justinmc
    Contributor

    Support has been added with the PR referenced above. Make sure you're on the master channel or you have the next version to be released after 1.8.2. Then you can do this:

    TextField(
      keyboardType: TextInputType.visiblePassword,
    ),

    Thanks for requesting this!

  7. github-actions commented on Aug 29, 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 29, 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

    c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions