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,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,
),
), ),
), ),
), ),

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

Loading…
Cancel
Save

Powered by TurnKey Linux.