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
Sabin Neupane
2024-07-29 16:52:36 +0545
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-07-29 08:07:36 -0300
Commit
01755d5e7f03ababbfca798cfe5ba9158f72c9b6
01755d5e
1 parent
b379cade
Update web dependency (#1703)
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
printing/lib/printing_web.dart
printing/pubspec.yaml
printing/lib/printing_web.dart
View file @
01755d5
...
...
@@ -213,7 +213,8 @@ class PrintingPlugin extends PrintingPlatform {
script
.
setAttribute
(
'id'
,
_scriptId
);
script
.
setAttribute
(
'type'
,
'text/javascript'
);
script
.
innerHTML
=
'''function
${_frameId}
_print(){var f=document.getElementById('
$_frameId
');f.focus();f.contentWindow.print();}'''
;
'''function
${_frameId}
_print(){var f=document.getElementById('
$_frameId
');f.focus();f.contentWindow.print();}'''
.
toJS
;
doc
.
body
!.
append
(
script
);
final
frame
=
doc
.
getElementById
(
_frameId
)
??
doc
.
createElement
(
'iframe'
);
...
...
printing/pubspec.yaml
View file @
01755d5
...
...
@@ -33,7 +33,7 @@ dependencies:
pdf
:
^3.10.0
pdf_widget_wrapper
:
'
>=1.0.0
<2.0.0'
plugin_platform_interface
:
^2.1.0
web
:
^
0.5.1
web
:
^
1.0.0
dev_dependencies
:
flutter_lints
:
^4.0.0
...
...
Please
register
or
login
to post a comment