Skip to content

Commit 155ee3c

Browse files
author
Harry Terkelsen
authored
Implement Path.from in the CanvasKit backend (flutter#14468)
1 parent 8ed688f commit 155ee3c

File tree

1 file changed

+2
-2
lines changed
  • lib/web_ui/lib/src/engine/compositor

1 file changed

+2
-2
lines changed

lib/web_ui/lib/src/engine/compositor/path.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class SkPath implements ui.Path {
1515
fillType = ui.PathFillType.nonZero;
1616
}
1717

18-
// TODO(yjbanov): implement: https://github.com/flutter/flutter/issues/46812
1918
SkPath.from(SkPath other) {
20-
throw UnimplementedError('SkPath.from is not implemented in the CanvasKit backend');
19+
_skPath = js.JsObject(canvasKit['SkPath'], <js.JsObject>[other._skPath]);
20+
fillType = other.fillType;
2121
}
2222

2323
SkPath._fromSkPath(js.JsObject skPath) : _skPath = skPath;

0 commit comments

Comments
 (0)