Showing
3 changed files
with
7 additions
and
8 deletions
| @@ -169,12 +169,7 @@ class WidgetWrapper extends pw.ImageProvider { | @@ -169,12 +169,7 @@ class WidgetWrapper extends pw.ImageProvider { | ||
| 169 | final renderView = RenderView( | 169 | final renderView = RenderView( |
| 170 | child: RenderPositionedBox( | 170 | child: RenderPositionedBox( |
| 171 | alignment: Alignment.center, child: repaintBoundary), | 171 | alignment: Alignment.center, child: repaintBoundary), |
| 172 | - configuration: ViewConfiguration( | ||
| 173 | - size: Size( | ||
| 174 | - computedConstraints.maxWidth, | ||
| 175 | - computedConstraints.maxHeight, | ||
| 176 | - ), | ||
| 177 | - devicePixelRatio: view.devicePixelRatio), | 172 | + configuration: ViewConfiguration.fromView(view), |
| 178 | view: view, | 173 | view: view, |
| 179 | ); | 174 | ); |
| 180 | 175 |
| @@ -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.3 | 7 | +version: 1.0.4 |
| 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.19.0" | 11 | + flutter: ">=3.20.0-7.0.pre.48" |
| 12 | 12 | ||
| 13 | dependencies: | 13 | dependencies: |
| 14 | flutter: | 14 | flutter: |
-
Please register or login to post a comment