Fix: deprecated Math.PI

This commit is contained in:
Victor Choueiri 2018-03-21 02:13:29 +02:00 committed by Victor Choueiri
parent 23e8965368
commit d445089176

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()