Showing
3 changed files
with
3 additions
and
2 deletions
@@ -91,7 +91,7 @@ class MethodChannelPrinting extends PrintingPlatform { | @@ -91,7 +91,7 @@ class MethodChannelPrinting extends PrintingPlatform { | ||
91 | break; | 91 | break; |
92 | case 'onPageRasterEnd': | 92 | case 'onPageRasterEnd': |
93 | final job = _printJobs[call.arguments['job']]; | 93 | final job = _printJobs[call.arguments['job']]; |
94 | - job.onPageRasterized.close(); | 94 | + await job.onPageRasterized.close(); |
95 | _printJobs.remove(job.index); | 95 | _printJobs.remove(job.index); |
96 | break; | 96 | break; |
97 | } | 97 | } |
@@ -175,7 +175,7 @@ mixin Printing { | @@ -175,7 +175,7 @@ mixin Printing { | ||
175 | assert(document != null || bytes != null); | 175 | assert(document != null || bytes != null); |
176 | assert(!(document == null && bytes == null)); | 176 | assert(!(document == null && bytes == null)); |
177 | 177 | ||
178 | - layoutPdf( | 178 | + await layoutPdf( |
179 | onLayout: (PdfPageFormat format) => | 179 | onLayout: (PdfPageFormat format) => |
180 | document != null ? document.save() : bytes); | 180 | document != null ? document.save() : bytes); |
181 | } | 181 | } |
-
Please register or login to post a comment