Commit 4fc0cbf0 authored by Eric Seidel's avatar Eric Seidel

Update RenderChart to expect a PaintingContext instead of PaintingCanvas

@abarth @collinjackson

It appears this code still depends on drawText which does not exist.
parent 0988c063
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment