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:
Eric Seidel 2015-08-17 13:25:59 -07:00
parent 0988c0637e
commit 4fc0cbf0eb

View File

@ -45,11 +45,11 @@ class RenderChart extends RenderConstrainedBox {
markNeedsPaint();
}
void paint(PaintingCanvas canvas, Offset offset) {
void paint(PaintingContext context, Offset offset) {
assert(size.width != null);
assert(size.height != null);
_painter.paint(canvas, offset & size);
super.paint(canvas, offset);
_painter.paint(context.canvas, offset & size);
super.paint(context, offset);
}
}