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-05-04 14:45:52 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c15f67e13b77a54bde9f92f62d9b27b17b9f46f
1c15f67e
1 parent
ea4b3dea
Improve Printing example readme
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
printing/example/README.md
printing/example/README.md
View file @
1c15f67
...
...
@@ -16,16 +16,16 @@ class MyApp extends StatelessWidget {
return
MaterialApp
(
home:
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Printing Demo'
),
title:
const
Text
(
'Printing Demo'
),
),
body:
Center
(
child:
FlatButton
(
child:
Text
(
"Print Document"
),
floatingActionButton:
FloatingActionButton
(
child:
const
Icon
(
Icons
.
print
),
tooltip:
'Print Document'
,
onPressed:
()
{
Printing
.
layoutPdf
(
onLayout:
buildPdf
);
},
),
),
body:
Center
(
child:
const
Text
(
'Click on the print button below'
)
),
),
);
}
...
...
@@ -39,7 +39,7 @@ class MyApp extends StatelessWidget {
constraints:
const
Pdf
.
BoxConstraints
.
expand
(),
child:
Pdf
.
FittedBox
(
child:
Pdf
.
Text
(
"Hello World"
,
'Hello World'
,
)),
);
}));
...
...
Please
register
or
login
to post a comment