Show Snackbar on hoseline tap

This commit is contained in:
2026-01-25 16:12:15 +01:00
parent 4c78216c6f
commit aa7fa0ed4e

View File

@@ -201,6 +201,15 @@ class _HoseViewState extends State<HoseView> {
);
}
void _showNotImplementedSnackbar() {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Listening to live QSOs has not been implemented yet'),
duration: Duration(seconds: 2),
),
);
}
Widget _buildHoseCard(HoseItem item) {
final now = DateTime.now();
final timeSinceActivity = now.difference(item.lastActivity);
@@ -214,7 +223,9 @@ class _HoseViewState extends State<HoseView> {
timeAgo = '${timeSinceActivity.inHours}h ago';
}
return Card(
return GestureDetector(
onTap: _showNotImplementedSnackbar,
child: Card(
elevation: item.isActive ? 4 : 1,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
@@ -309,6 +320,7 @@ class _HoseViewState extends State<HoseView> {
],
),
),
),
);
}
}