mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dm chart
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1537,12 +1537,12 @@ Widget buildDmChart(
|
|||||||
lineTouchData: const LineTouchData(enabled: false),
|
lineTouchData: const LineTouchData(enabled: false),
|
||||||
gridData: const FlGridData(show: false),
|
gridData: const FlGridData(show: false),
|
||||||
borderData: FlBorderData(show: false),
|
borderData: FlBorderData(show: false),
|
||||||
minX: 0,
|
// minX: 0,
|
||||||
maxX: (plPlayerController.dmTrend.length - 1).toDouble(),
|
// maxX: (plPlayerController.dmTrend.length - 1).toDouble(),
|
||||||
minY: 0,
|
// minY: 0,
|
||||||
maxY: plPlayerController.dmTrend
|
// maxY: plPlayerController.dmTrend
|
||||||
.reduce((a, b) => a > b ? a : b)
|
// .reduce((a, b) => a > b ? a : b)
|
||||||
.toDouble(),
|
// .toDouble(),
|
||||||
lineBarsData: [
|
lineBarsData: [
|
||||||
LineChartBarData(
|
LineChartBarData(
|
||||||
spots: List.generate(
|
spots: List.generate(
|
||||||
@@ -1553,7 +1553,8 @@ Widget buildDmChart(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
isCurved: true,
|
isCurved: true,
|
||||||
barWidth: 0,
|
barWidth: 0.5,
|
||||||
|
color: Theme.of(context).colorScheme.primary,
|
||||||
dotData: const FlDotData(show: false),
|
dotData: const FlDotData(show: false),
|
||||||
belowBarData: BarAreaData(
|
belowBarData: BarAreaData(
|
||||||
show: true,
|
show: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user