Changed all map lables to look the same across all map ui (#206)

* Refactor label display in Line Of Sight and Map screens for improved alignment and styling

* Refactor label positioning and styling in ChannelMessagePathMap and PathTraceMap screens for improved alignment
This commit is contained in:
Winston Lowe
2026-02-21 14:55:42 -08:00
committed by GitHub
parent 061b715694
commit b05b62eeee
2 changed files with 36 additions and 42 deletions
+18 -21
View File
@@ -663,27 +663,24 @@ class _ChannelMessagePathMapScreenState
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
child: IgnorePointer( child: IgnorePointer(
child: Transform.translate( child: Transform.translate(
offset: const Offset(0, -26), offset: const Offset(0, -20),
child: Container( child: FittedBox(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), fit: BoxFit.contain,
decoration: BoxDecoration( child: Container(
color: Colors.black54, padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
borderRadius: BorderRadius.circular(8), decoration: BoxDecoration(
), color: Colors.black54,
child: SizedBox( borderRadius: BorderRadius.circular(8),
width: 96, ),
child: FittedBox( alignment: Alignment.center,
fit: BoxFit.scaleDown, child: Text(
alignment: Alignment.centerLeft, label,
child: Text( maxLines: 1,
label, overflow: TextOverflow.ellipsis,
maxLines: 1, style: const TextStyle(
overflow: TextOverflow.ellipsis, color: Colors.white,
style: const TextStyle( fontSize: 11,
color: Colors.white, fontWeight: FontWeight.w500,
fontSize: 11,
fontWeight: FontWeight.w500,
),
), ),
), ),
), ),
+18 -21
View File
@@ -479,27 +479,24 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
child: IgnorePointer( child: IgnorePointer(
child: Transform.translate( child: Transform.translate(
offset: const Offset(0, -26), offset: const Offset(0, -20),
child: Container( child: FittedBox(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), fit: BoxFit.contain,
decoration: BoxDecoration( child: Container(
color: Colors.black54, padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
borderRadius: BorderRadius.circular(8), decoration: BoxDecoration(
), color: Colors.black54,
child: SizedBox( borderRadius: BorderRadius.circular(8),
width: 96, ),
child: FittedBox( alignment: Alignment.center,
fit: BoxFit.scaleDown, child: Text(
alignment: Alignment.centerLeft, label,
child: Text( maxLines: 1,
label, overflow: TextOverflow.ellipsis,
maxLines: 1, style: const TextStyle(
overflow: TextOverflow.ellipsis, color: Colors.white,
style: const TextStyle( fontSize: 11,
color: Colors.white, fontWeight: FontWeight.w500,
fontSize: 11,
fontWeight: FontWeight.w500,
),
), ),
), ),
), ),