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] Enable a custom obscuring character to be set for password fields #36377

Closed
nirav4273 opened this issue Jul 17, 2019 · 9 comments · Fixed by #55415
Closed
Assignees
Labels
a: text input Entering text in a text field or keyboard related problems 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

@nirav4273
Copy link

nirav4273 commented Jul 17, 2019

In TextFormField need to set password field value from dot to asterisk .
As below image.
AdobeStock_50144597-796x529

@nirav4273 nirav4273 changed the title Flutter set password field as asterisk (*) How to set password field as asterisk (*) ? Jul 17, 2019
@shyndman
Copy link
Contributor

Take a look at TextField.obscureText.

Also, there's an active community on StackOverflow that can generally help with this kind of issue. Take a look!

@nirav4273
Copy link
Author

nirav4273 commented Jul 19, 2019

@shyndman It's set text into dot format. It's bool. I need to change from dot to asterisk format as showing in image. I need way to change default password text format.

https://www.wufoo.com/html5/password-type/
Please check above link

@shinriyo
Copy link

shinriyo commented Oct 4, 2019

@nirav4273
I want to replace dot to asterisk too.
Not U+2022 BULLET characters.

@timsneath It is not resolved.

@timsneath
Copy link
Contributor

Ah, so you're asking to change the character used for masking passwords? That's not a property we expose in Flutter. It's controlled by obscuringCharacter, which is a constant value in the RenderEditable class.

I'll reopen this issue and mark it as a feature request, but to set expectations, this is a fairly obscure request (e.g. the web doesn't support this as a standard feature either), so the added complexity may not justify the feature. In the meantime, the workaround would be to clone the TextField class and modify it to use a different RenderEditable class that has the value you want.

@timsneath timsneath reopened this Oct 16, 2019
@timsneath timsneath added c: new feature Nothing broken; request for a new capability a: text input Entering text in a text field or keyboard related problems f: material design flutter/packages/flutter/material repository. labels Oct 16, 2019
@timsneath timsneath changed the title How to set password field as asterisk (*) ? [Feature Request] Enable a custom obscuring character to be set for password fields Oct 16, 2019
@shinriyo
Copy link

shinriyo commented Oct 17, 2019

@timsneath

Ah, so you're asking to change the character used for masking passwords?

Yes, we are.
Thank you.

@VladyslavBondarenko VladyslavBondarenko added passed first triage framework flutter/packages/flutter repository. See also f: labels. and removed passed first triage labels Jan 14, 2020
@justinmc justinmc self-assigned this Apr 22, 2020
@jargalbat
Copy link

thank you very much :)

@shinriyo
Copy link

Thanks a lot

@aditya-mahajan96
Copy link

Change password image in flutter from circle to * by just entering obscuringCharacter and shape you wanted eg -

obscuringCharacter: '*',
obscureText: true,

@github-actions
Copy link

github-actions bot commented Aug 1, 2021

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 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: text input Entering text in a text field or keyboard related problems 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.

8 participants