paintBack method

  1. @override
void paintBack(
  1. Canvas canvas,
  2. WheelFrameGeometry geometry
)
override

Paints the part of the frame behind the slices.

Implementation

@override
void paintBack(Canvas canvas, WheelFrameGeometry geometry) {
  final g = geometry;
  // The glow the tubes cast around the wheel.
  canvas.drawCircle(
    g.center,
    g.outer * 0.97,
    Paint()
      ..style = PaintingStyle.stroke
      ..strokeWidth = g.radius * 0.06
      ..color = color.withValues(alpha: 0.45)
      ..maskFilter = MaskFilter.blur(BlurStyle.normal, g.radius * 0.05),
  );
  canvas.drawCircle(g.center, g.outer, Paint()..color = plateColor);
}