未验证 提交 155ee3cb 编写于 作者: H Harry Terkelsen 提交者: GitHub

Implement Path.from in the CanvasKit backend (#14468)

上级 8ed688f7
......@@ -15,9 +15,9 @@ class SkPath implements ui.Path {
fillType = ui.PathFillType.nonZero;
}
// TODO(yjbanov): implement: https://github.com/flutter/flutter/issues/46812
SkPath.from(SkPath other) {
throw UnimplementedError('SkPath.from is not implemented in the CanvasKit backend');
_skPath = js.JsObject(canvasKit['SkPath'], <js.JsObject>[other._skPath]);
fillType = other.fillType;
}
SkPath._fromSkPath(js.JsObject skPath) : _skPath = skPath;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册