Update RenderChart to expect a PaintingContext instead of PaintingCanvas
@abarth @collinjackson It appears this code still depends on drawText which does not exist.
This commit is contained in:
@@ -45,11 +45,11 @@ class RenderChart extends RenderConstrainedBox {
|
|||||||
markNeedsPaint();
|
markNeedsPaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void paint(PaintingCanvas canvas, Offset offset) {
|
void paint(PaintingContext context, Offset offset) {
|
||||||
assert(size.width != null);
|
assert(size.width != null);
|
||||||
assert(size.height != null);
|
assert(size.height != null);
|
||||||
_painter.paint(canvas, offset & size);
|
_painter.paint(context.canvas, offset & size);
|
||||||
super.paint(canvas, offset);
|
super.paint(context, offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user