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
2019-09-23 22:14:59 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a25398650b958f71a7ef5a1ae05ff490fd4bdfd
7a253986
1 parent
a35d738d
Update example
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
printing/example/lib/main.dart
printing/example/lib/main.dart
View file @
7a25398
...
...
@@ -64,13 +64,16 @@ class MyAppState extends State<MyApp> {
referenceBox
.
localToGlobal
(
referenceBox
.
paintBounds
.
bottomRight
);
final
Rect
bounds
=
Rect
.
fromPoints
(
topLeft
,
bottomRight
);
final
Printer
printer
=
await
Printing
.
pickPrinter
(
bounds:
bounds
);
setState
(()
{
selectedPrinter
=
printer
;
});
print
(
'Selected printer:
$selectedPrinter
'
);
try
{
final
Printer
printer
=
await
Printing
.
pickPrinter
(
bounds:
bounds
);
print
(
'Selected printer:
$selectedPrinter
'
);
setState
(()
{
selectedPrinter
=
printer
;
});
}
catch
(
e
)
{
print
(
e
);
}
}
Future
<
void
>
_directPrintPdf
()
async
{
...
...
Please
register
or
login
to post a comment