Remove old setFoo functions on Paint

We now just use Dart properties, which is more idiomatic.
This commit is contained in:
Adam Barth
2015-10-19 12:21:34 -07:00
parent 88bcfa2d79
commit 2aa79d5694
13 changed files with 27 additions and 25 deletions

View File

@@ -48,10 +48,10 @@ RenderBox getBox(double lh) {
path.lineTo(w, baseline);
path.moveTo(0.0, h);
path.lineTo(w, h);
Paint paint = new Paint();
paint.color = const Color(0xFFFF9000);
paint.setStyle(ui.PaintingStyle.stroke);
paint.strokeWidth = 3.0;
Paint paint = new Paint()
..color = const Color(0xFFFF9000)
..style = ui.PaintingStyle.stroke
..strokeWidth = 3.0;
canvas.drawPath(path, paint);
}
)