Showing
3 changed files
with
14 additions
and
4 deletions
| @@ -170,8 +170,10 @@ class WidgetWrapper extends pw.ImageProvider { | @@ -170,8 +170,10 @@ 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 | - size: | ||
| 174 | - Size(computedConstraints.maxWidth, computedConstraints.maxHeight), | 173 | + constraints: ui.ViewConstraints( |
| 174 | + maxWidth: computedConstraints.maxWidth, | ||
| 175 | + maxHeight: computedConstraints.maxHeight, | ||
| 176 | + ), | ||
| 175 | devicePixelRatio: view.devicePixelRatio), | 177 | devicePixelRatio: view.devicePixelRatio), |
| 176 | view: view, | 178 | view: view, |
| 177 | ); | 179 | ); |
| @@ -4,11 +4,11 @@ description: > | @@ -4,11 +4,11 @@ description: > | ||
| 4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/widget_wrapper | 4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/widget_wrapper |
| 5 | repository: https://github.com/DavBfr/dart_pdf | 5 | repository: https://github.com/DavBfr/dart_pdf |
| 6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues | 6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues |
| 7 | -version: 1.0.1 | 7 | +version: 1.0.2 |
| 8 | 8 | ||
| 9 | environment: | 9 | environment: |
| 10 | sdk: ">=2.18.0 <4.0.0" | 10 | sdk: ">=2.18.0 <4.0.0" |
| 11 | - flutter: ">=3.9.0" | 11 | + flutter: ">=3.18.0-1.0.pre.23<3.19.0" |
| 12 | 12 | ||
| 13 | dependencies: | 13 | dependencies: |
| 14 | flutter: | 14 | flutter: |
-
Please register or login to post a comment