David PHAM-VAN

Add compatibility with Flutter 3.20.0-7.0.pre.48

1 # Changelog 1 # Changelog
2 2
  3 +## 1.0.4
  4 +
  5 +- Add compatibility with Flutter 3.20.0-7.0.pre.48
  6 +
3 ## 1.0.3 7 ## 1.0.3
4 8
5 - Add compatibility with Flutter 3.19.0 9 - Add compatibility with Flutter 3.19.0
@@ -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: