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
2020-09-09 08:36:24 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7dc3b05624148fc8b8fa2945f88adbb822d50bf8
7dc3b056
1 parent
13dcd46c
Add missing awaits
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
printing/CHANGELOG.md
printing/lib/src/method_channel.dart
printing/lib/src/printing.dart
printing/CHANGELOG.md
View file @
7dc3b05
...
...
@@ -3,6 +3,7 @@
## 3.6.1
-
Update the example to use PdfPreview
-
Add missing
`await`
s
## 3.6.0
...
...
printing/lib/src/method_channel.dart
View file @
7dc3b05
...
...
@@ -91,7 +91,7 @@ class MethodChannelPrinting extends PrintingPlatform {
break
;
case
'onPageRasterEnd'
:
final
job
=
_printJobs
[
call
.
arguments
[
'job'
]];
job
.
onPageRasterized
.
close
();
await
job
.
onPageRasterized
.
close
();
_printJobs
.
remove
(
job
.
index
);
break
;
}
...
...
printing/lib/src/printing.dart
View file @
7dc3b05
...
...
@@ -175,7 +175,7 @@ mixin Printing {
assert
(
document
!=
null
||
bytes
!=
null
);
assert
(!(
document
==
null
&&
bytes
==
null
));
layoutPdf
(
await
layoutPdf
(
onLayout:
(
PdfPageFormat
format
)
=>
document
!=
null
?
document
.
save
()
:
bytes
);
}
...
...
Please
register
or
login
to post a comment