paint method
Implementation
@override
paint(Canvas canvas, Paint? paint, Size size) {
var circleSpacing = 4;
var width = size.width;
var radius = (width - circleSpacing * 4) / 6;
var x = width / 2 - (radius * 2 + circleSpacing);
var y = width / 2 - (radius * 2 + circleSpacing);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
canvas.save();
var translateX = x + (radius * 2) * j + circleSpacing * j;
var translateY = y + (radius * 2) * i + circleSpacing * i;
canvas.translate(translateX, translateY);
paint!.color = paint.color.withAlpha(alphaInts[3 * i + j]);
canvas.drawCircle(
Offset(0, 0), radius * scaleDoubles[3 * i + j], paint);
canvas.restore();
}
}
}