Skip to content

Commit 7ab5a55

Browse files
committed
去除过渡动画
1 parent 85d07a4 commit 7ab5a55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/widgets/dual_bar_chart.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ class StatisticsChartState extends State<StatisticsChart> {
150150
height: 38,
151151
),
152152
Expanded(
153-
child: LineChart(mainData()),
153+
child: LineChart(mainData(),
154+
duration: const Duration(milliseconds: 0)),
154155
),
155156
],
156157
),
@@ -265,6 +266,7 @@ class StatisticsChartState extends State<StatisticsChart> {
265266
}).toList(),
266267
gridData: const FlGridData(show: false),
267268
),
269+
swapAnimationDuration: const Duration(milliseconds: 0),
268270
),
269271
),
270272
const SizedBox(

0 commit comments

Comments
 (0)