Created
May 31, 2021 16:41
-
-
Save Indy9000/5b1a72b329b8741867bef1df4aecf53c to your computer and use it in GitHub Desktop.
animated-donut-chart-04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void drawSector(Canvas canvas, DataItem di, Rect rect, double startAngle, | |
double sweepAngle) { | |
final paint = Paint() | |
..style = PaintingStyle.fill | |
..color = di.color; | |
canvas.drawArc(rect, startAngle, sweepAngle, true, paint); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment