mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-04 07:50:57 +10:00
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:
@@ -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,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user