We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f0228 commit d1e7e66Copy full SHA for d1e7e66
lib/src/chart/pie_chart/pie_chart_painter.dart
@@ -455,8 +455,10 @@ class PieChartPainter extends BaseChartPainter<PieChartData> {
455
final sectionAngle = sectionsAngle[i];
456
457
if (sectionAngle == 360) {
458
- final distance = math.sqrt(math.pow(localPosition.dx - center.dx, 2) +
459
- math.pow(localPosition.dy - center.dy, 2));
+ final distance = math.sqrt(
+ math.pow(localPosition.dx - center.dx, 2) +
460
+ math.pow(localPosition.dy - center.dy, 2),
461
+ );
462
if (distance >= centerRadius &&
463
distance <= section.radius + centerRadius) {
464
foundSectionData = section;
0 commit comments