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
2024-05-16 11:29:23 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e389d83c4602510be5f704f28ffe21d5d73dc22
1e389d83
1 parent
5f4ebb80
Fix wrong tearoff lint
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
printing/lib/printing_web.dart
printing/lib/printing_web.dart
View file @
1e389d8
...
...
@@ -369,7 +369,12 @@ class PrintingPlugin extends PrintingPlatform {
// Convert the image to PNG
final
completer
=
Completer
<
void
>();
final
blobCompleter
=
Completer
<
web
.
Blob
?>();
canvas
.
toBlob
(
blobCompleter
.
complete
.
toJS
);
canvas
.
toBlob
(
// ignore: unnecessary_lambdas
(
web
.
Blob
?
blob
)
{
blobCompleter
.
complete
(
blob
);
}.
toJS
,
);
final
blob
=
await
blobCompleter
.
future
;
if
(
blob
==
null
)
{
continue
;
...
...
Please
register
or
login
to post a comment