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
Akshay Pawar
2023-12-22 16:46:06 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2024-01-27 11:49:34 -0400
Commit
6dfa69cbc585e7aeefab8d492c81af8af65898f9
6dfa69cb
1 parent
c30728ad
Migrated deprecated webview to WKWebview on macos printing
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
printing/CHANGELOG.md
printing/macos/Classes/PrintJob.swift
printing/pubspec.yaml
printing/CHANGELOG.md
View file @
6dfa69c
# Changelog
## 5.1
.2
## 5.1
2.0
-
Refactor html imports
-
Migrated deprecated webview to WKWebview on macos printing
[
Akshay-Pawar
]
## 5.11.1
...
...
printing/macos/Classes/PrintJob.swift
View file @
6dfa69c
...
...
@@ -230,8 +230,8 @@ public class PrintJob: NSView, NSSharingServicePickerDelegate {
printInfo
.
rightMargin
=
size
.
width
-
margin
.
maxX
printInfo
.
bottomMargin
=
size
.
height
-
margin
.
maxY
let
webView
=
WebView
()
webView
.
mainFrame
.
loadHTMLString
(
data
,
baseURL
:
baseUrl
)
let
webView
=
WKWebView
(
frame
:
viewController
!.
view
.
bounds
)
webView
.
loadHTMLString
(
data
,
baseURL
:
baseUrl
??
Bundle
.
main
.
bundleURL
)
let
when
=
DispatchTime
.
now
()
+
1
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
when
)
{
...
...
printing/pubspec.yaml
View file @
6dfa69c
...
...
@@ -15,7 +15,7 @@ topics:
-
print
-
printing
-
report
version
:
5.1
1.2
version
:
5.1
2.0
environment
:
sdk
:
"
>=3.0.0
<4.0.0"
...
...
Please
register
or
login
to post a comment