Committed by
David PHAM-VAN
Fix canChangeOrientation option not appearing bug
Fixed the issue where canChangePageFormat also disabled canChangeOrientation.
Showing
2 changed files
with
5 additions
and
4 deletions
| @@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
| 5 | - Remove deprecated Android embedding | 5 | - Remove deprecated Android embedding |
| 6 | - Add custom pages builder to PdfPreview widget [Milad akarie] | 6 | - Add custom pages builder to PdfPreview widget [Milad akarie] |
| 7 | - Update Image dependency | 7 | - Update Image dependency |
| 8 | +- Fix canChangeOrientation option not appearing bug [Bilal Raja] | ||
| 8 | 9 | ||
| 9 | ## 5.9.3 | 10 | ## 5.9.3 |
| 10 | 11 |
| @@ -346,11 +346,11 @@ class _PdfPreviewState extends State<PdfPreview> { | @@ -346,11 +346,11 @@ class _PdfPreviewState extends State<PdfPreview> { | ||
| 346 | actions.add(PdfPageFormatAction( | 346 | actions.add(PdfPageFormatAction( |
| 347 | pageFormats: widget.pageFormats, | 347 | pageFormats: widget.pageFormats, |
| 348 | )); | 348 | )); |
| 349 | + } | ||
| 349 | 350 | ||
| 350 | - if (widget.useActions && widget.canChangeOrientation) { | ||
| 351 | - // ignore: prefer_const_constructors | ||
| 352 | - actions.add(PdfPageOrientationAction()); | ||
| 353 | - } | 351 | + if (widget.useActions && widget.canChangeOrientation) { |
| 352 | + // ignore: prefer_const_constructors | ||
| 353 | + actions.add(PdfPageOrientationAction()); | ||
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | widget.actions?.forEach(actions.add); | 356 | widget.actions?.forEach(actions.add); |
-
Please register or login to post a comment