mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-19 07:10:51 +10:00
Add scrollbar to path trace details list for improved navigation
This commit is contained in:
@@ -515,38 +515,45 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
|||||||
? Center(
|
? Center(
|
||||||
child: Text(l10n.channelPath_noHopDetailsAvailable),
|
child: Text(l10n.channelPath_noHopDetailsAvailable),
|
||||||
)
|
)
|
||||||
: ListView.separated(
|
: Scrollbar(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
child: ListView.separated(
|
||||||
itemCount: pathTraceData.pathData.length + 1,
|
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||||
separatorBuilder: (_, __) => const Divider(height: 1),
|
itemCount: pathTraceData.pathData.length + 1,
|
||||||
itemBuilder: (context, index) {
|
separatorBuilder: (_, __) => const Divider(height: 1),
|
||||||
return Column(
|
itemBuilder: (context, index) {
|
||||||
children: [
|
return Column(
|
||||||
ListTile(
|
children: [
|
||||||
leading:
|
ListTile(
|
||||||
index >= pathTraceData.snrData.length / 2
|
leading:
|
||||||
? Icon(Icons.call_received)
|
index >= pathTraceData.snrData.length / 2
|
||||||
: Icon(Icons.call_made),
|
? Icon(Icons.call_received)
|
||||||
title: Text(
|
: Icon(Icons.call_made),
|
||||||
formatDirectionText(pathTraceData, index),
|
title: Text(
|
||||||
style: const TextStyle(fontSize: 14),
|
formatDirectionText(pathTraceData, index),
|
||||||
|
style: const TextStyle(fontSize: 14),
|
||||||
|
),
|
||||||
|
subtitle: Text(
|
||||||
|
formatDirectionSubText(
|
||||||
|
pathTraceData,
|
||||||
|
index,
|
||||||
|
),
|
||||||
|
style: const TextStyle(fontSize: 14),
|
||||||
|
),
|
||||||
|
trailing: SNRIcon(
|
||||||
|
snr:
|
||||||
|
pathTraceData.snrData[index].toSigned(
|
||||||
|
8,
|
||||||
|
) /
|
||||||
|
4.0,
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
// Handle item tap
|
||||||
|
},
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
],
|
||||||
formatDirectionSubText(pathTraceData, index),
|
);
|
||||||
style: const TextStyle(fontSize: 14),
|
},
|
||||||
),
|
),
|
||||||
trailing: SNRIcon(
|
|
||||||
snr:
|
|
||||||
pathTraceData.snrData[index].toSigned(8) /
|
|
||||||
4.0,
|
|
||||||
),
|
|
||||||
onTap: () {
|
|
||||||
// Handle item tap
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user