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
2021-06-24 08:37:38 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f2bfed5901e9be52ad779cd00cca6f8adcd5fbe5
f2bfed59
1 parent
2c753195
Mitigate Safari 14.1.1 print() bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
printing/CHANGELOG.md
printing/lib/printing_web.dart
printing/pubspec.yaml
printing/CHANGELOG.md
View file @
f2bfed5
...
...
@@ -3,6 +3,7 @@
## 5.4.2
-
Use proper print dialog on Firefox
-
Mitigate Safari 14.1.1 print() bug
## 5.4.1
...
...
printing/lib/printing_web.dart
View file @
f2bfed5
...
...
@@ -99,7 +99,8 @@ class PrintingPlugin extends PrintingPlatform {
final
String
userAgent
=
js
.
context
[
'navigator'
][
'userAgent'
];
final
isChrome
=
js
.
context
[
'chrome'
]
!=
null
;
final
isSafari
=
js
.
context
[
'safari'
]
!=
null
;
final
isSafari
=
js
.
context
[
'safari'
]
!=
null
&&
!
userAgent
.
contains
(
RegExp
(
r'Version/14\.1\.'
));
final
isMobile
=
userAgent
.
contains
(
'Mobile'
);
final
isFirefox
=
userAgent
.
contains
(
'Firefox'
);
...
...
printing/pubspec.yaml
View file @
f2bfed5
...
...
@@ -7,7 +7,7 @@ description: >
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/printing
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
5.4.
1
version
:
5.4.
2
environment
:
sdk
:
"
>=2.12.0
<3.0.0"
...
...
Please
register
or
login
to post a comment