fix: correct use of Flutter 3.19's ViewConfiguration constructor
Showing
1 changed file
with
3 additions
and
7 deletions
| @@ -170,13 +170,9 @@ class WidgetWrapper extends pw.ImageProvider { | @@ -170,13 +170,9 @@ 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 | - physicalConstraints: BoxConstraints( | ||
| 174 | - maxWidth: computedConstraints.maxWidth, | ||
| 175 | - maxHeight: computedConstraints.maxHeight, | ||
| 176 | - ), | ||
| 177 | - logicalConstraints: BoxConstraints( | ||
| 178 | - maxWidth: computedConstraints.maxWidth, | ||
| 179 | - maxHeight: computedConstraints.maxHeight, | 173 | + size: Size( |
| 174 | + computedConstraints.maxWidth, | ||
| 175 | + computedConstraints.maxHeight, | ||
| 180 | ), | 176 | ), |
| 181 | devicePixelRatio: view.devicePixelRatio), | 177 | devicePixelRatio: view.devicePixelRatio), |
| 182 | view: view, | 178 | view: view, |
-
Please register or login to post a comment