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
+4 -7
View File
@@ -663,18 +663,16 @@ 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: FittedBox(
fit: BoxFit.contain,
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black54, color: Colors.black54,
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), ),
child: SizedBox( alignment: Alignment.center,
width: 96,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text( child: Text(
label, label,
maxLines: 1, maxLines: 1,
@@ -689,7 +687,6 @@ class _ChannelMessagePathMapScreenState
), ),
), ),
), ),
),
); );
} }
+4 -7
View File
@@ -479,18 +479,16 @@ 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: FittedBox(
fit: BoxFit.contain,
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black54, color: Colors.black54,
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), ),
child: SizedBox( alignment: Alignment.center,
width: 96,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text( child: Text(
label, label,
maxLines: 1, maxLines: 1,
@@ -505,7 +503,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
), ),
), ),
), ),
),
); );
} }