paintDropShadow static method

void paintDropShadow(
  1. Canvas canvas,
  2. WheelFrameGeometry geometry,
  3. double radius
)

Paints a soft drop shadow under a circle of radius.

Implementation

static void paintDropShadow(
    Canvas canvas, WheelFrameGeometry geometry, double radius) {
  canvas.drawCircle(
    geometry.center + Offset(0, geometry.radius * 0.025),
    radius,
    Paint()
      ..color = const Color(0x59000000)
      ..maskFilter =
          MaskFilter.blur(BlurStyle.normal, geometry.radius * 0.035),
  );
}