This commit is contained in:
Alejandro Alonso 2023-12-21 16:55:22 +01:00
parent 218b5e52e5
commit 1579be27cc

View File

@ -127,7 +127,12 @@ class CanvasKit {
if (shape.blur) {
blur = this.CanvasKit.ImageFilter.MakeBlur(shape.blur.value, shape.blur.value, this.CanvasKit.TileMode.Decal, null);
if (!shape.shadow) {
const blurRect = this.CanvasKit.RRectXY(
this.CanvasKit.LTRBRect(shape.x, shape.y, shape.x + shape.width, shape.y + shape.height),
rx,
ry)
paint.setImageFilter(blur)
canvas.drawRRect(blurRect, paint)
}
}
if (shape.shadow) {