Default tap on URL opens settings

This commit is contained in:
Juan José Mata
2026-02-18 15:51:17 +01:00
parent 9dd3aad250
commit a16e1f8482

View File

@@ -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,
),
],
),
),
),