I have use the obscure text, however it still shows the character before the asterisk (can be shown at the image). How do i make it completely hide every character
When a user is typing in a password text field on a mobile device, it is common for the last character to be briefly displayed before it is obscured. This is because the system is designed to provide visual feedback to the user, so they know that the character they just typed has been registered by the device.
In Flutter, the obscureText property can be set to true to indicate that the text input should be treated as a password field. When obscureText is set to true, the text entered by the user will be obscured by dots or asterisks to protect the privacy of the user. However, even with obscureText set to true, it is still possible for the last character to be briefly displayed before being obscured. This is because this behavior is expected on mobile devices.
In summary, the line you provided is pointing out that the brief display of the last typed character in a password text field is a common behavior on mobile devices, even when the obscureText property is set to true.
You can read more about this in this PR of the Flutter official repository on Github.
2
Answers
setting obscureText to true on the TextField works for me.
In addition, I would set enableSuggestions to false and autocorrect to false.
It could look like this:
When a user is typing in a password text field on a mobile device, it is common for the last character to be briefly displayed before it is obscured. This is because the system is designed to provide visual feedback to the user, so they know that the character they just typed has been registered by the device.
In Flutter, the
obscureText
property can be set to true to indicate that the text input should be treated as a password field. WhenobscureText
is set to true, the text entered by the user will be obscured by dots or asterisks to protect the privacy of the user. However, even withobscureText
set totrue
, it is still possible for the last character to be briefly displayed before being obscured. This is because this behavior is expected on mobile devices.In summary, the line you provided is pointing out that the brief display of the last typed character in a password text field is a common behavior on mobile devices, even when the
obscureText
property is set to true.You can read more about this in this PR of the Flutter official repository on Github.