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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user