Bilal Raja
Committed by David PHAM-VAN

Fix canChangeOrientation option not appearing bug

Fixed the issue where canChangePageFormat also disabled canChangeOrientation.
... ... @@ -5,6 +5,7 @@
- Remove deprecated Android embedding
- Add custom pages builder to PdfPreview widget [Milad akarie]
- Update Image dependency
- Fix canChangeOrientation option not appearing bug [Bilal Raja]
## 5.9.3
... ...
... ... @@ -346,12 +346,12 @@ class _PdfPreviewState extends State<PdfPreview> {
actions.add(PdfPageFormatAction(
pageFormats: widget.pageFormats,
));
}
if (widget.useActions && widget.canChangeOrientation) {
// ignore: prefer_const_constructors
actions.add(PdfPageOrientationAction());
}
}
widget.actions?.forEach(actions.add);
... ...