Unverified Commit 7fdb404a authored by liyuqian's avatar liyuqian Committed by GitHub

Add the missing canvas.save and canvas.restore (#18722)

This fixes https://github.com/flutter/flutter/issues/18708
parent d6465c47
......@@ -1752,8 +1752,10 @@ class RenderPhysicalShape extends _RenderPhysicalModelBase<Path> {
);
}
canvas.drawPath(offsetPath, new Paint()..color = color..style = PaintingStyle.fill);
canvas.save();
canvas.clipPath(offsetPath);
super.paint(context, offset);
canvas.restore();
assert(context.canvas == canvas, 'canvas changed even though needsCompositing was false');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment