Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Replace IconButton with GestureDetector for password visibility toggle

ashilkn834c4a944b2b
diff --git a/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart b/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart
index 52b675b807..a7b4e7a423 100644
--- a/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart
@@ -124,15 +124,15 @@ class _AccountCredentialsPageState
controller: _passwordController,
obscureText: !_passwordVisible,
shouldUseTextInputWidget: false,
- suffixIcon: IconButton(
- icon: Icon(
- _passwordVisible ? Icons.visibility : Icons.visibility_off,
- ),
- onPressed: () {
+ suffixIcon: GestureDetector(
+ onTap: () {
setState(() {
_passwordVisible = !_passwordVisible;
});
},
+ child: Icon(
+ _passwordVisible ? Icons.visibility : Icons.visibility_off,
+ ),
),
validator: (value) {
if (value == null || value.trim().isEmpty) {