forked from firka/flutter
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();
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user