Skip to content

Commit c114581

Browse files
Transform clip path when applied to a group (#794)
* Transform clip path when applied to a group Fix #136, #343, #566 * Golden test added
1 parent b2e20fc commit c114581

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 17 additions & 0 deletions
Loading
5.18 KB
Loading

third_party/lib/src/vector_drawable.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,10 @@ class DrawableGroup implements DrawableStyleable, DrawableParent {
10981098

10991099
if (style?.clipPath?.isNotEmpty == true) {
11001100
for (Path clipPath in style!.clipPath!) {
1101+
if (transform != null) {
1102+
clipPath = clipPath.transform(transform!);
1103+
}
1104+
11011105
canvas.save();
11021106
canvas.clipPath(clipPath);
11031107
if (children!.length > 1) {

0 commit comments

Comments
 (0)