paint method

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

Implementation

@override
void paint(TouchRippleContext context, Canvas canvas, Size size) {
  final paintColor = color.withAlpha(((color.alpha) * fadePercent).toInt());
  final paint = Paint()
    ..color = paintColor
    ..style = PaintingStyle.fill;

  canvas.drawPaint(paint);
}