fix: dm chart x

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-31 13:30:37 +08:00
parent 7ba9646d38
commit 27a6f1dc10

View File

@@ -1538,7 +1538,7 @@ Widget buildDmChart(
gridData: const FlGridData(show: false),
borderData: FlBorderData(show: false),
minX: 0,
maxX: plPlayerController.dmTrend.length.toDouble(),
maxX: (plPlayerController.dmTrend.length - 1).toDouble(),
minY: 0,
maxY: plPlayerController.dmTrend
.reduce((a, b) => a > b ? a : b)