mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Implement Path.from in the CanvasKit backend (flutter/engine#14468)
This commit is contained in:
parent
e1c106dc70
commit
feb5125ef9
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user