mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
0988c0637e
commit
4fc0cbf0eb
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user