CircularProgressPainter constructor

CircularProgressPainter({
  1. required double progress,
  2. Color? backgroundColor = Colors.grey,
  3. Color? progressColor = Colors.blue,
  4. double? strokeWidth = 8,
})

Creates a CircularProgressPainter.

  • progress defines how much of the circle is filled.
  • backgroundColor sets the base circle color.
  • progressColor sets the arc color.
  • strokeWidth defines line thickness.

Implementation

CircularProgressPainter({
  required this.progress,
  this.backgroundColor = Colors.grey,
  this.progressColor = Colors.blue,
  this.strokeWidth = 8,
});