Skip to content

Commit d1e7e66

Browse files
Samir Hosny MohamedimaNNeo
authored andcommitted
nit
1 parent 40f0228 commit d1e7e66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/chart/pie_chart/pie_chart_painter.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,10 @@ class PieChartPainter extends BaseChartPainter<PieChartData> {
455455
final sectionAngle = sectionsAngle[i];
456456

457457
if (sectionAngle == 360) {
458-
final distance = math.sqrt(math.pow(localPosition.dx - center.dx, 2) +
459-
math.pow(localPosition.dy - center.dy, 2));
458+
final distance = math.sqrt(
459+
math.pow(localPosition.dx - center.dx, 2) +
460+
math.pow(localPosition.dy - center.dy, 2),
461+
);
460462
if (distance >= centerRadius &&
461463
distance <= section.radius + centerRadius) {
462464
foundSectionData = section;

0 commit comments

Comments
 (0)