fix: Hide password at login page

This commit is contained in:
Krille Fear 2022-10-27 15:22:27 +02:00
parent 45c8ea3281
commit 55847ba1b1

View file

@ -60,7 +60,7 @@ class LoginView extends StatelessWidget {
controller.loading ? null : [AutofillHints.password],
controller: controller.passwordController,
textInputAction: TextInputAction.next,
obscureText: !controller.showPassword,
obscureText: controller.loading || !controller.showPassword,
onSubmitted: controller.login,
decoration: InputDecoration(
prefixIcon: const Icon(Icons.lock_outlined),