mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-08-01 08:05:55 +10:00
Add scrollbar to path trace details list for improved navigation
This commit is contained in:
@@ -515,7 +515,8 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
|||||||
? Center(
|
? Center(
|
||||||
child: Text(l10n.channelPath_noHopDetailsAvailable),
|
child: Text(l10n.channelPath_noHopDetailsAvailable),
|
||||||
)
|
)
|
||||||
: ListView.separated(
|
: Scrollbar(
|
||||||
|
child: ListView.separated(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||||
itemCount: pathTraceData.pathData.length + 1,
|
itemCount: pathTraceData.pathData.length + 1,
|
||||||
separatorBuilder: (_, __) => const Divider(height: 1),
|
separatorBuilder: (_, __) => const Divider(height: 1),
|
||||||
@@ -532,12 +533,17 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
|||||||
style: const TextStyle(fontSize: 14),
|
style: const TextStyle(fontSize: 14),
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
formatDirectionSubText(pathTraceData, index),
|
formatDirectionSubText(
|
||||||
|
pathTraceData,
|
||||||
|
index,
|
||||||
|
),
|
||||||
style: const TextStyle(fontSize: 14),
|
style: const TextStyle(fontSize: 14),
|
||||||
),
|
),
|
||||||
trailing: SNRIcon(
|
trailing: SNRIcon(
|
||||||
snr:
|
snr:
|
||||||
pathTraceData.snrData[index].toSigned(8) /
|
pathTraceData.snrData[index].toSigned(
|
||||||
|
8,
|
||||||
|
) /
|
||||||
4.0,
|
4.0,
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -549,6 +555,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user