Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] textVisiblePassword (Android) #31738

Closed
yuridiniz opened this issue Apr 27, 2019 · 6 comments · Fixed by #36695
Closed

[Feature Request] textVisiblePassword (Android) #31738

yuridiniz opened this issue Apr 27, 2019 · 6 comments · Fixed by #36695
Labels
c: new feature Nothing broken; request for a new capability f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Comments

@yuridiniz
Copy link

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

@HansMuller HansMuller added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. c: new feature Nothing broken; request for a new capability labels Apr 29, 2019
@justinmc
Copy link
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.

@niktses
Copy link

niktses commented Jul 22, 2019

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

@justinmc
Copy link
Contributor

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

@niktses
Copy link

niktses commented Jul 23, 2019

Thanks a lot

@justinmc
Copy link
Contributor

justinmc commented Jul 29, 2019

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!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants