NearHuscarl / flutter_login

Provides login screen with login/signup functionalities to help speed up development
MIT License
1.5k stars 798 forks source link

[FEATURE] Hide password confirmation when password is unobfuscated #370

Open otto-dev opened 1 year ago

otto-dev commented 1 year ago

There is little purpose to the "Confirm Password" input when the password field is displayed in plain-text. It's too expensive from a UX perspective to force the user to repeat the password if they can already see what they typed.

It would be nice if the password confirmation field is automatically removed from the screen and validation logic when the user clicks the un-obfuscation icon.

The password visibility icon should then only be displayed on the main password input.

Somewhat related: https://github.com/NearHuscarl/flutter_login/issues/367