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
chore/offband-rebrand
Winston Lowe 5 months ago committed by GitHub
parent 061b715694
commit b05b62eeee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
), ),
), ),
), ),
),
); );
} }

@ -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> {
), ),
), ),
), ),
),
); );
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.