Showing
2 changed files
with
6 additions
and
2 deletions
@@ -170,7 +170,11 @@ class WidgetWrapper extends pw.ImageProvider { | @@ -170,7 +170,11 @@ class WidgetWrapper extends pw.ImageProvider { | ||
170 | child: RenderPositionedBox( | 170 | child: RenderPositionedBox( |
171 | alignment: Alignment.center, child: repaintBoundary), | 171 | alignment: Alignment.center, child: repaintBoundary), |
172 | configuration: ViewConfiguration( | 172 | configuration: ViewConfiguration( |
173 | - constraints: ui.ViewConstraints( | 173 | + physicalConstraints: BoxConstraints( |
174 | + maxWidth: computedConstraints.maxWidth, | ||
175 | + maxHeight: computedConstraints.maxHeight, | ||
176 | + ), | ||
177 | + logicalConstraints: BoxConstraints( | ||
174 | maxWidth: computedConstraints.maxWidth, | 178 | maxWidth: computedConstraints.maxWidth, |
175 | maxHeight: computedConstraints.maxHeight, | 179 | maxHeight: computedConstraints.maxHeight, |
176 | ), | 180 | ), |
-
Please register or login to post a comment