Fix: deprecated Math.PI

This commit is contained in:
Victor Choueiri authored and Victor Choueiri committed 2018-03-21 03:55:55 +02:00
1 parent 23e8965368
commit d445089176
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ class CircularChartPainter extends CustomPainter {
bool shouldRepaint(CircularChartPainter old) => false;
}
const double _kRadiansPerDegree = Math.PI / 180;
const double _kRadiansPerDegree = Math.pi / 180;
void _paintChart(Canvas canvas, Size size, CircularChart chart) {
final Paint segmentPaint = new Paint()