From 1f5e5967edb4146b10f077dd7d38e73385b2ebfd Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Wed, 01 Apr 2026 18:29:13 +0200
Subject: [PATCH] feat: show connection method (Local/VPN/Remote/Discovered) in app bar and settings
---
lib/screens/settings_screen.dart | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart
index c0d9580..840db79 100644
--- a/lib/screens/settings_screen.dart
+++ b/lib/screens/settings_screen.dart
@@ -138,9 +138,24 @@
children: [
StatusDot(status: wsStatus),
const SizedBox(width: 12),
- Text(
- _statusText(wsStatus),
- style: Theme.of(context).textTheme.bodyLarge,
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ _statusText(wsStatus),
+ style: Theme.of(context).textTheme.bodyLarge,
+ ),
+ if (ref.watch(connectedViaProvider).isNotEmpty)
+ Text(
+ 'via ${ref.watch(connectedViaProvider)}',
+ style: TextStyle(
+ fontSize: 12,
+ color: Colors.grey.shade500,
+ ),
+ ),
+ ],
+ ),
),
],
),
--
Gitblit v1.3.1