Give the CustomPaint and SizeObserver callbacks better names

The style we use for callbacks in widgets is "onFoo". These classes were using
an order naming convention and just called their callbacks "callback".
This commit is contained in:
Adam Barth
2015-10-19 17:22:59 -07:00
parent 2edc6dbb3d
commit 529fa95f87
21 changed files with 60 additions and 60 deletions

View File

@@ -37,7 +37,7 @@ RenderBox getBox(double lh) {
padding: new EdgeDims.all(10.0),
child: new RenderCustomPaint(
child: paragraph,
callback: (canvas, size) {
onPaint: (canvas, size) {
double baseline = paragraph.getDistanceToBaseline(TextBaseline.alphabetic);
double w = paragraph.getMaxIntrinsicWidth(new BoxConstraints.loose(size));
double h = paragraph.getMaxIntrinsicHeight(new BoxConstraints.loose(size));