Skip to content

Commit

Permalink
Add compatibility with Flutter 3.20.0-7.0.pre.48
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed May 14, 2024
1 parent 378571e commit a532221
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions widget_wrapper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.4

- Add compatibility with Flutter 3.20.0-7.0.pre.48

## 1.0.3

- Add compatibility with Flutter 3.19.0
Expand Down
7 changes: 1 addition & 6 deletions widget_wrapper/lib/src/widget_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@ class WidgetWrapper extends pw.ImageProvider {
final renderView = RenderView(
child: RenderPositionedBox(
alignment: Alignment.center, child: repaintBoundary),
configuration: ViewConfiguration(
size: Size(
computedConstraints.maxWidth,
computedConstraints.maxHeight,
),
devicePixelRatio: view.devicePixelRatio),
configuration: ViewConfiguration.fromView(view),
view: view,
);

Expand Down
4 changes: 2 additions & 2 deletions widget_wrapper/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: >
homepage: https://github.com/DavBfr/dart_pdf/tree/master/widget_wrapper
repository: https://github.com/DavBfr/dart_pdf
issue_tracker: https://github.com/DavBfr/dart_pdf/issues
version: 1.0.3
version: 1.0.4

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.19.0"
flutter: ">=3.20.0-7.0.pre.48"

dependencies:
flutter:
Expand Down

0 comments on commit a532221

Please sign in to comment.