flutter/flutter

[Feature Request] textVisiblePassword (Android)

yuridiniz opened this issue · 6 comments

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

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.

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

@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

Thanks a lot

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!

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.