From 40d55b0b43fa1725ee4d2ce6daec02ba2974d5c7 Mon Sep 17 00:00:00 2001 From: JulianAlcala Date: Sun, 26 Apr 2026 08:53:49 +0200 Subject: [PATCH] fix(control-panel): use iso_sf.png in map preview banner --- .../lib/src/shared/widgets/device_map.dart | 27 ++++--------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/modules/legacy/modules/control_panel/lib/src/shared/widgets/device_map.dart b/modules/legacy/modules/control_panel/lib/src/shared/widgets/device_map.dart index 05fd8d0a..79f28bb1 100644 --- a/modules/legacy/modules/control_panel/lib/src/shared/widgets/device_map.dart +++ b/modules/legacy/modules/control_panel/lib/src/shared/widgets/device_map.dart @@ -124,9 +124,6 @@ class LocationBanner extends ConsumerWidget { final deviceName = localDevice != null ? (name != null && name.isNotEmpty ? name : localDevice.identificator) : null; - final initial = deviceName != null && deviceName.isNotEmpty - ? deviceName[0].toUpperCase() - : null; final addressText = [ position.address?.street, @@ -157,25 +154,11 @@ class LocationBanner extends ConsumerWidget { ), child: Row( children: [ - if (initial != null) - Container( - width: isCompact ? 30 : 42, - height: isCompact ? 30 : 42, - decoration: BoxDecoration( - color: primaryColor.withValues(alpha: 0.12), - shape: BoxShape.circle, - ), - child: Center( - child: Text( - initial, - style: TextStyle( - fontSize: isCompact ? 13 : 18, - fontWeight: FontWeight.w700, - color: primaryColor, - ), - ), - ), - ), + Image.asset( + 'assets/shared/images/iso_sf.png', + width: isCompact ? 30 : 42, + height: isCompact ? 30 : 42, + ), SizedBox(width: isCompact ? 6 : 10), Expanded( child: Column(