Remove PaintingCanvas

We can just use Canvas now.  The two are the same thing.
This commit is contained in:
Adam Barth
2015-12-04 20:26:08 -08:00
parent b6cf053e89
commit abf0359569
22 changed files with 33 additions and 39 deletions

View File

@@ -139,7 +139,7 @@ abstract class RenderDecoratedSector extends RenderSector {
return;
if (_decoration.backgroundColor != null) {
final PaintingCanvas canvas = context.canvas;
final Canvas canvas = context.canvas;
Paint paint = new Paint()..color = _decoration.backgroundColor;
Path path = new Path();
double outerRadius = (parentData.radius + deltaRadius);

View File

@@ -62,7 +62,7 @@ class RenderTouchDemo extends RenderBox {
}
void paint(PaintingContext context, Offset offset) {
final PaintingCanvas canvas = context.canvas;
final Canvas canvas = context.canvas;
Paint white = new Paint()
..color = const Color(0xFFFFFFFF);
canvas.drawRect(offset & size, white);