From bf4305bdb3349d07c4c1c122303db6b51f7b11e2 Mon Sep 17 00:00:00 2001 From: Janez T Date: Thu, 16 Oct 2025 13:53:08 +0200 Subject: [PATCH] feat: Enhance BLE connection strength indicator with RSSI display and adjust spacing --- lib/screens/home_screen.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index f3ca93b..a4086b3 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -574,7 +574,7 @@ class _HomeScreenState extends State Row( mainAxisSize: MainAxisSize.min, children: [ - // BLE connection strength indicator + // BLE connection strength indicator with RSSI Icon( Icons.bluetooth_connected, color: deviceInfo.signalRssi != null @@ -582,7 +582,17 @@ class _HomeScreenState extends State : Colors.grey, size: 16, ), - const SizedBox(width: 8), + const SizedBox(width: 4), + if (deviceInfo.signalRssi != null) + Text( + '${deviceInfo.signalRssi}dBm', + style: TextStyle( + fontSize: 12, + color: _getSignalColor(deviceInfo.signalRssi!), + fontWeight: FontWeight.w500, + ), + ), + const SizedBox(width: 12), // Battery indicator if (deviceInfo.batteryPercent != null) ...[ Icon(