David PHAM-VAN

Fix orientation not changing

1 # Changelog 1 # Changelog
2 2
  3 +## 5.7.4
  4 +
  5 +- Fix orientation not changing
  6 +
3 ## 5.7.3 7 ## 5.7.3
4 8
5 - Fix crash when Android load a PDF file which had password 9 - Fix crash when Android load a PDF file which had password
@@ -284,7 +284,8 @@ class _PdfPreviewState extends State<PdfPreview> { @@ -284,7 +284,8 @@ class _PdfPreviewState extends State<PdfPreview> {
284 )); 284 ));
285 285
286 if (widget.canChangeOrientation) { 286 if (widget.canChangeOrientation) {
287 - actions.add(const PdfPageOrientationAction()); 287 + // ignore: prefer_const_constructors
  288 + actions.add(PdfPageOrientationAction());
288 } 289 }
289 } 290 }
290 291
@@ -6,7 +6,7 @@ description: > @@ -6,7 +6,7 @@ description: >
6 homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing 6 homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing
7 repository: https://github.com/DavBfr/dart_pdf 7 repository: https://github.com/DavBfr/dart_pdf
8 issue_tracker: https://github.com/DavBfr/dart_pdf/issues 8 issue_tracker: https://github.com/DavBfr/dart_pdf/issues
9 -version: 5.7.3 9 +version: 5.7.4
10 10
11 environment: 11 environment:
12 sdk: ">=2.12.0 <3.0.0" 12 sdk: ">=2.12.0 <3.0.0"