paint method

  1. @override
void paint(
  1. Canvas canvas,
  2. Paint paint,
  3. Size size
)
override

Paint method for the sub class to override and render their loading style

Implementation

@override
void paint(Canvas canvas, Paint paint, Size size) {
  var circleSpacing = 4;
  var width = size.width;
  var height = size.height;
  for (int i = 0; i < 3; i++) {
    paint.color = paint.color.withAlpha(alphaInts[i]);
    canvas.drawCircle(Offset(width / 2, height / 2),
        (width / 2 - circleSpacing) * scaleDoubles[i], paint);
  }
}