From a16e1f8482c9eecaf98fa85a9bccffe89e50e008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?= Date: Wed, 18 Feb 2026 15:51:17 +0100 Subject: [PATCH] Default tap on URL opens settings --- mobile/lib/screens/login_screen.dart | 60 +++++++++++++++------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/mobile/lib/screens/login_screen.dart b/mobile/lib/screens/login_screen.dart index c741aac13..3c97f457e 100644 --- a/mobile/lib/screens/login_screen.dart +++ b/mobile/lib/screens/login_screen.dart @@ -441,34 +441,38 @@ class _LoginScreenState extends State { const SizedBox(height: 24), // Backend URL info - Container( - padding: const EdgeInsets.all(12), - decoration: BoxDecoration( - color: colorScheme.surfaceContainerHighest - .withValues(alpha: 0.3), - borderRadius: BorderRadius.circular(8), - ), - child: Column( - children: [ - Text( - 'Sure server URL:', - style: - Theme.of(context).textTheme.bodySmall?.copyWith( - color: colorScheme.onSurfaceVariant, - fontWeight: FontWeight.bold, - ), - ), - const SizedBox(height: 4), - Text( - ApiConfig.baseUrl, - style: - Theme.of(context).textTheme.bodySmall?.copyWith( - color: colorScheme.primary, - fontFamily: 'monospace', - ), - textAlign: TextAlign.center, - ), - ], + InkWell( + onTap: widget.onGoToSettings, + borderRadius: BorderRadius.circular(8), + child: Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: colorScheme.surfaceContainerHighest + .withValues(alpha: 0.3), + borderRadius: BorderRadius.circular(8), + ), + child: Column( + children: [ + Text( + 'Sure server URL:', + style: + Theme.of(context).textTheme.bodySmall?.copyWith( + color: colorScheme.onSurfaceVariant, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 4), + Text( + ApiConfig.baseUrl, + style: + Theme.of(context).textTheme.bodySmall?.copyWith( + color: colorScheme.primary, + fontFamily: 'monospace', + ), + textAlign: TextAlign.center, + ), + ], + ), ), ),