Fix: deprecated Math.PI
This commit is contained in:
parent
23e8965368
commit
d445089176
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user