我有这个饼图是由Ffltter Pie_Chart插件创建的.
return SizedBox(
height: 150.0,
child: Stack(
children: [
PieChart(
baseChartColor: AmbarColors.greyNoEvents,
totalValue: hoursSpent,
dataMap: dataMap,
// degreeOptions: const DegreeOptions(totalDegrees: 360, initialAngle: 0),
animationDuration: Duration(milliseconds: 2000),
chartLegendSpacing: 22,
chartRadius: MediaQuery.of(context).size.width / 3.2,
colorList: const [AmbarColors.backgroundGreen],
initialAngleInDegree: 0,
chartType: ChartType.ring,
ringStrokeWidth: 17,
centerText: '$percent%',
centerTextStyle: const TextStyle(
fontWeight: FontWeight.bold,
fontFamily: Fonts.satoshi,
fontSize: 30),
legendOptions: const LegendOptions(
showLegends: false,
),
chartValuesOptions: const ChartValuesOptions(
showChartValueBackground: false,
showChartValues: false,
showChartValuesInPercentage: true,
),
gradientList: gradientList,
// gradientList: ---To add gradient colors---
// emptyColorGradient: ---Empty Color gradient---
)
],
));
}
问题是当我将图表放入滚动区域时.这就是结果: Chart rotates every time I move the mouse and I don't understand why个
还有谁有这个问题吗?