Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2022-02-25 09:23:44 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
763687f9d373dfe32bd387734d80875266f455f9
763687f9
1 parent
13f95f1e
Fix PdfPreview page format and orientation updates
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
printing/CHANGELOG.md
printing/lib/src/preview/pdf_preview.dart
printing/CHANGELOG.md
View file @
763687f
...
...
@@ -5,6 +5,7 @@
-
Update pdfium version to 4861
-
Fix crash when Android load a PDF file which had password
-
Fix parsing TTF fonts with zero-length glyphs
-
Fix PdfPreview page format and orientation updates
## 5.7.2
...
...
printing/lib/src/preview/pdf_preview.dart
View file @
763687f
...
...
@@ -315,21 +315,24 @@ class _PdfPreviewState extends State<PdfPreview> {
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
Expanded
(
child:
PdfPreviewCustom
(
key:
previewWidget
,
build:
widget
.
build
,
loadingWidget:
widget
.
loadingWidget
,
maxPageWidth:
widget
.
maxPageWidth
,
onError:
widget
.
onError
,
padding:
widget
.
padding
,
pageFormat:
previewData
.
pageFormat
,
pages:
widget
.
pages
,
pdfPreviewPageDecoration:
widget
.
pdfPreviewPageDecoration
,
previewPageMargin:
widget
.
previewPageMargin
,
scrollViewDecoration:
widget
.
scrollViewDecoration
,
shouldRepaint:
widget
.
shouldRepaint
,
dpi:
widget
.
dpi
,
),
child:
Builder
(
builder:
(
context
)
{
final
controller
=
PdfPreviewController
.
listen
(
context
);
return
PdfPreviewCustom
(
key:
previewWidget
,
build:
controller
.
buildDocument
,
loadingWidget:
widget
.
loadingWidget
,
maxPageWidth:
widget
.
maxPageWidth
,
onError:
widget
.
onError
,
padding:
widget
.
padding
,
pageFormat:
controller
.
pageFormat
,
pages:
widget
.
pages
,
pdfPreviewPageDecoration:
widget
.
pdfPreviewPageDecoration
,
previewPageMargin:
widget
.
previewPageMargin
,
scrollViewDecoration:
widget
.
scrollViewDecoration
,
shouldRepaint:
widget
.
shouldRepaint
,
dpi:
widget
.
dpi
,
);
}),
),
if
(
actions
.
isNotEmpty
&&
widget
.
useActions
)
IconTheme
.
merge
(
...
...
Please
register
or
login
to post a comment