Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Default tap on URL opens settings

Juan José Mataa16e1f8482c9
diff --git a/mobile/lib/screens/login_screen.dart b/mobile/lib/screens/login_screen.dart
index c741aac131..3c97f457eb 100644
--- a/mobile/lib/screens/login_screen.dart
+++ b/mobile/lib/screens/login_screen.dart
@@ -441,34 +441,38 @@ class _LoginScreenState extends State<LoginScreen> {
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,
+ ),
+ ],
+ ),
),
),