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
GregoryConrad
2020-03-10 13:04:16 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2020-03-10 13:35:35 -0400
Commit
6d4884730da550cde970c2ab507b2e7adc0332e6
6d488473
1 parent
97573fc5
Fixes issue #238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
printing/lib/src/printing.dart
printing/lib/src/printing.dart
View file @
6d48847
...
...
@@ -122,14 +122,11 @@ mixin Printing {
};
await
_channel
.
invokeMethod
<
int
>(
'printPdf'
,
params
);
bool
result
=
false
;
try
{
result
=
await
job
.
onCompleted
.
future
;
}
catch
(
e
)
{
print
(
'Document not printed:
$e
'
);
return
await
job
.
onCompleted
.
future
;
}
finally
{
_printJobs
.
remove
(
job
.
index
);
}
_printJobs
.
remove
(
job
.
index
);
return
result
;
}
static
Future
<
Map
<
dynamic
,
dynamic
>>
printingInfo
()
async
{
...
...
Please
register
or
login
to post a comment