Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -441,8 +441,7 @@ class CustomPaint extends SingleChildWidget { | @@ -441,8 +441,7 @@ class CustomPaint extends SingleChildWidget { | ||
| 441 | void layout(Context context, BoxConstraints constraints, | 441 | void layout(Context context, BoxConstraints constraints, |
| 442 | {bool parentUsesSize = false}) { | 442 | {bool parentUsesSize = false}) { |
| 443 | if (child != null) { | 443 | if (child != null) { |
| 444 | - child.layout(context, constraints.tighten(width: size.x, height: size.y), | ||
| 445 | - parentUsesSize: parentUsesSize); | 444 | + child.layout(context, constraints, parentUsesSize: parentUsesSize); |
| 446 | assert(child.box != null); | 445 | assert(child.box != null); |
| 447 | box = child.box; | 446 | box = child.box; |
| 448 | } else { | 447 | } else { |
-
Please register or login to post a comment