fix(control-panel): use iso_sf.png in map preview banner

This commit is contained in:
2026-04-26 08:53:49 +02:00
parent 5aa45b3d01
commit 40d55b0b43

View File

@@ -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(