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), const SizedBox(height: 24),
// Backend URL info // Backend URL info
Container( InkWell(
padding: const EdgeInsets.all(12), onTap: widget.onGoToSettings,
decoration: BoxDecoration( borderRadius: BorderRadius.circular(8),
color: colorScheme.surfaceContainerHighest child: Container(
.withValues(alpha: 0.3), padding: const EdgeInsets.all(12),
borderRadius: BorderRadius.circular(8), decoration: BoxDecoration(
), color: colorScheme.surfaceContainerHighest
child: Column( .withValues(alpha: 0.3),
children: [ borderRadius: BorderRadius.circular(8),
Text( ),
'Sure server URL:', child: Column(
style: children: [
Theme.of(context).textTheme.bodySmall?.copyWith( Text(
color: colorScheme.onSurfaceVariant, 'Sure server URL:',
fontWeight: FontWeight.bold, style:
), Theme.of(context).textTheme.bodySmall?.copyWith(
), color: colorScheme.onSurfaceVariant,
const SizedBox(height: 4), fontWeight: FontWeight.bold,
Text( ),
ApiConfig.baseUrl, ),
style: const SizedBox(height: 4),
Theme.of(context).textTheme.bodySmall?.copyWith( Text(
color: colorScheme.primary, ApiConfig.baseUrl,
fontFamily: 'monospace', style:
), Theme.of(context).textTheme.bodySmall?.copyWith(
textAlign: TextAlign.center, color: colorScheme.primary,
), fontFamily: 'monospace',
], ),
textAlign: TextAlign.center,
),
],
),
), ),
), ),