Flutter_Pinput icon indicating copy to clipboard operation
Flutter_Pinput copied to clipboard

Would it be posible to show typed value for x time before obscuring text?

Open nombrekeff opened this issue 2 years ago • 4 comments

Hey there!

I was wondering if it would be possible to show the typed value for some amount of time before obscuring it? Similar to how regular TextFields handle obscured text.

Current behavior:

  1. PinPut with obscureText = '*'
  2. user types character
  3. character is obscured

Requested behavior:

  1. PinPut with obscureText = '*'
  2. user types a character
  3. character is shown for 1s
  4. Then it obscures itself

I think this could be a really good feature to have, maybe opt-in. This way the user can see if an incorrect character has been entered.

I wouldn't mind filing a PR if the feature is accepted, just let me know!

Cheers

nombrekeff avatar Nov 24 '21 10:11 nombrekeff

Has this been implemented yet?

mathiasgodwin avatar Apr 20 '22 11:04 mathiasgodwin

@mathiasgodwin Not yet 🤭 , PR's are welcomed

Tkko avatar Apr 20 '22 14:04 Tkko

That functionality provided by TextFormField not by EditableText.

dhruvanbhalara avatar May 17 '22 16:05 dhruvanbhalara

Yup, that's the case. Any idea on how we could implement this without much work? Or is it even possible with the current implementation? Could we change EditableText to TextFormField or TextField?

nombrekeff avatar May 18 '22 10:05 nombrekeff