paintSurface method

void paintSurface(
  1. Canvas canvas, {
  2. double sigmaX = 0.9,
  3. double sigmaY = 0.9,
})

Implementation

void paintSurface(Canvas canvas, {double sigmaX = 0.9, double sigmaY = 0.9}) {
  final paint = Paint()
    ..imageFilter = ui.ImageFilter.blur(
        sigmaX: sigmaX, sigmaY: sigmaY, tileMode: TileMode.repeated)
    ..shader = ImageShader(
      noiseTexture,
      TileMode.repeated,
      TileMode.repeated,
      Matrix4.identity().storage,
    );

  canvas.save();
  canvas.clipPath(innerPath);
  canvas.drawPath(innerPath, paint);
  canvas.restore();
}