Skip to content

Instantly share code, notes, and snippets.

@Indy9000
Created May 31, 2021 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Indy9000/5b1a72b329b8741867bef1df4aecf53c to your computer and use it in GitHub Desktop.
Save Indy9000/5b1a72b329b8741867bef1df4aecf53c to your computer and use it in GitHub Desktop.
animated-donut-chart-04
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