From 464b0e575b7315e44f479216a6be5b1a5b478558 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Thu, 27 Oct 2022 15:32:05 +0200 Subject: [PATCH] chore: Follow up login fix --- lib/pages/login/login_view.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/pages/login/login_view.dart b/lib/pages/login/login_view.dart index ce3a10fa..8f22069e 100644 --- a/lib/pages/login/login_view.dart +++ b/lib/pages/login/login_view.dart @@ -60,21 +60,20 @@ class LoginView extends StatelessWidget { controller.loading ? null : [AutofillHints.password], controller: controller.passwordController, textInputAction: TextInputAction.next, - obscureText: controller.loading || !controller.showPassword, + obscureText: !controller.showPassword, onSubmitted: controller.login, decoration: InputDecoration( prefixIcon: const Icon(Icons.lock_outlined), errorText: controller.passwordError, errorStyle: const TextStyle(color: Colors.orange), - suffixIcon: IconButton( - tooltip: L10n.of(context)!.showPassword, - icon: Icon( + suffixIcon: InkWell( + onTap: controller.toggleShowPassword, + child: Icon( controller.showPassword ? Icons.visibility_off_outlined : Icons.visibility_outlined, color: Colors.black, ), - onPressed: controller.toggleShowPassword, ), hintText: L10n.of(context)!.password, fillColor: Theme.of(context).colorScheme.background,