Remove PaintingCanvas
We can just use Canvas now. The two are the same thing.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user