fix: Password not obscure for a second when submitting login textfield
This commit is contained in:
parent
0abd6f82f2
commit
a737719091
2 changed files with 6 additions and 5 deletions
|
|
@ -27,7 +27,8 @@ class LoginController extends State<Login> {
|
|||
bool loading = false;
|
||||
bool showPassword = false;
|
||||
|
||||
void toggleShowPassword() => setState(() => showPassword = !showPassword);
|
||||
void toggleShowPassword() =>
|
||||
setState(() => showPassword = !loading && !showPassword);
|
||||
|
||||
void login([_]) async {
|
||||
final matrix = Matrix.of(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue