Fix: deprecated Math.PI
This commit is contained in:
1 parent
23e8965368
commit
d445089176
1 file changed
+1
-1
@@ -33,7 +33,7 @@ class CircularChartPainter extends CustomPainter {
|
|||||||
bool shouldRepaint(CircularChartPainter old) => false;
|
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) {
|
void _paintChart(Canvas canvas, Size size, CircularChart chart) {
|
||||||
final Paint segmentPaint = new Paint()
|
final Paint segmentPaint = new Paint()
|
||||||
|
|||||||
Reference in new issue
Block a user