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
2020-03-12 09:11:25 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e059a707cb64765756062861a63a960acd3018d
6e059a70
1 parent
6315de86
Prevent save to file on Web
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
printing/example/lib/main.dart
printing/example/lib/main.dart
View file @
6e059a7
...
...
@@ -260,11 +260,14 @@ class MyAppState extends State<MyApp> {
),
RaisedButton
(
child:
const
Text
(
'Print Screenshot'
),
onPressed:
printingInfo
?.
canPrint
??
false
?
_printScreen
:
null
,
onPressed:
(
printingInfo
?.
canPrint
??
false
)
&&
!
kIsWeb
?
_printScreen
:
null
,
),
RaisedButton
(
child:
const
Text
(
'Save to file'
),
onPressed:
_saveAsFile
),
child:
const
Text
(
'Save to file'
),
onPressed:
kIsWeb
?
null
:
_saveAsFile
,
),
RaisedButton
(
child:
const
Text
(
'Raster to Image'
),
onPressed:
...
...
Please
register
or
login
to post a comment