Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir Hosny Mohamed authored and imaNNeo committed Oct 20, 2024
1 parent 40f0228 commit d1e7e66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/chart/pie_chart/pie_chart_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,10 @@ class PieChartPainter extends BaseChartPainter<PieChartData> {
final sectionAngle = sectionsAngle[i];

if (sectionAngle == 360) {
final distance = math.sqrt(math.pow(localPosition.dx - center.dx, 2) +
math.pow(localPosition.dy - center.dy, 2));
final distance = math.sqrt(
math.pow(localPosition.dx - center.dx, 2) +
math.pow(localPosition.dy - center.dy, 2),
);
if (distance >= centerRadius &&
distance <= section.radius + centerRadius) {
foundSectionData = section;
Expand Down

0 comments on commit d1e7e66

Please sign in to comment.