Skip to content

Commit 00857cf

Browse files
authored
[desktop_webview_window] bump WebKitGTK to 4.1 (#213)
* upgrade linux webkit to webkit2gtk-4.1 * fix typo * bump version to 0.2.0
1 parent 16e16cf commit 00857cf

File tree

8 files changed

+102
-58
lines changed

8 files changed

+102
-58
lines changed

packages/desktop_webview_window/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.0
2+
3+
* BREAK CHANGE: bump linux webkit2gtk version to 4.1
4+
15
## 0.1.6
26

37
* fix WebView render area wrong offset on Windows.

packages/desktop_webview_window/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[![Pub](https://img.shields.io/pub/v/desktop_webview_window.svg)](https://pub.dev/packages/desktop_webview_window)
44

5-
Show a webview window on your flutter deksktop application.
5+
Show a webview window on your flutter desktop application.
66

77
| | | |
88
| -------- | ------- | ---- |
99
| Windows || [Webview2](https://www.nuget.org/packages/Microsoft.Web.WebView2) 1.0.992.28 |
10-
| Linux | ✅ | [WebKitGTK](https://webkitgtk.org/reference/webkit2gtk/stable/index.html)
10+
| Linux || [WebKitGTK-4.1](https://webkitgtk.org/reference/webkit2gtk/stable/index.html) |
1111
| macOS || WKWebview |
1212

1313
## Getting Started
@@ -40,7 +40,7 @@ Show a webview window on your flutter deksktop application.
4040
### **linux requirement**
4141

4242
```shell
43-
sudo apt-get install webkit2gtk-4.0
43+
sudo apt-get install webkit2gtk-4.1
4444
```
4545

4646
### **Windows requirement**
@@ -54,7 +54,6 @@ See more: https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/dist
5454

5555
For convenience, you can use `WebviewWindow.isWebviewAvailable()` check whether the WebView2 is available.
5656

57-
5857
## License
5958

6059
see [LICENSE](./LICENSE)

packages/desktop_webview_window/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class _MyAppState extends State<MyApp> {
136136
);
137137
webview
138138
..setBrightness(Brightness.dark)
139-
..setApplicationNameForUserAgent("WebviewExample/1.0.0")
139+
..setApplicationNameForUserAgent(" WebviewExample/1.0.0")
140140
..launch(_controller.text)
141141
..addOnUrlRequestCallback((url) {
142142
debugPrint('url: $url');

packages/desktop_webview_window/example/pubspec.lock

Lines changed: 89 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,48 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.9.0"
11+
version: "2.10.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
24+
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
25+
url: "https://pub.dev"
2326
source: hosted
2427
version: "1.2.1"
2528
clock:
2629
dependency: transitive
2730
description:
2831
name: clock
29-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3034
source: hosted
3135
version: "1.1.1"
3236
collection:
3337
dependency: transitive
3438
description:
3539
name: collection
36-
url: "https://pub.dartlang.org"
40+
sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
41+
url: "https://pub.dev"
3742
source: hosted
38-
version: "1.16.0"
43+
version: "1.17.0"
3944
cupertino_icons:
4045
dependency: "direct main"
4146
description:
4247
name: cupertino_icons
43-
url: "https://pub.dartlang.org"
48+
sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
49+
url: "https://pub.dev"
4450
source: hosted
4551
version: "1.0.5"
4652
desktop_webview_window:
@@ -49,26 +55,29 @@ packages:
4955
path: ".."
5056
relative: true
5157
source: path
52-
version: "0.1.6"
58+
version: "0.2.0"
5359
fake_async:
5460
dependency: transitive
5561
description:
5662
name: fake_async
57-
url: "https://pub.dartlang.org"
63+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
64+
url: "https://pub.dev"
5865
source: hosted
5966
version: "1.3.1"
6067
ffi:
6168
dependency: transitive
6269
description:
6370
name: ffi
64-
url: "https://pub.dartlang.org"
71+
sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978
72+
url: "https://pub.dev"
6573
source: hosted
6674
version: "2.0.1"
6775
file:
6876
dependency: transitive
6977
description:
7078
name: file
71-
url: "https://pub.dartlang.org"
79+
sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
80+
url: "https://pub.dev"
7281
source: hosted
7382
version: "6.1.4"
7483
flutter:
@@ -80,117 +89,141 @@ packages:
8089
dependency: "direct dev"
8190
description:
8291
name: flutter_lints
83-
url: "https://pub.dartlang.org"
92+
sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493
93+
url: "https://pub.dev"
8494
source: hosted
8595
version: "1.0.4"
8696
flutter_test:
8797
dependency: "direct dev"
8898
description: flutter
8999
source: sdk
90100
version: "0.0.0"
101+
js:
102+
dependency: transitive
103+
description:
104+
name: js
105+
sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
106+
url: "https://pub.dev"
107+
source: hosted
108+
version: "0.6.5"
91109
lints:
92110
dependency: transitive
93111
description:
94112
name: lints
95-
url: "https://pub.dartlang.org"
113+
sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c
114+
url: "https://pub.dev"
96115
source: hosted
97116
version: "1.0.1"
98117
matcher:
99118
dependency: transitive
100119
description:
101120
name: matcher
102-
url: "https://pub.dartlang.org"
121+
sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
122+
url: "https://pub.dev"
103123
source: hosted
104-
version: "0.12.12"
124+
version: "0.12.13"
105125
material_color_utilities:
106126
dependency: transitive
107127
description:
108128
name: material_color_utilities
109-
url: "https://pub.dartlang.org"
129+
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
130+
url: "https://pub.dev"
110131
source: hosted
111-
version: "0.1.5"
132+
version: "0.2.0"
112133
meta:
113134
dependency: transitive
114135
description:
115136
name: meta
116-
url: "https://pub.dartlang.org"
137+
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
138+
url: "https://pub.dev"
117139
source: hosted
118140
version: "1.8.0"
119141
path:
120142
dependency: transitive
121143
description:
122144
name: path
123-
url: "https://pub.dartlang.org"
145+
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
146+
url: "https://pub.dev"
124147
source: hosted
125148
version: "1.8.2"
126149
path_provider:
127150
dependency: "direct main"
128151
description:
129152
name: path_provider
130-
url: "https://pub.dartlang.org"
153+
sha256: "050e8e85e4b7fecdf2bb3682c1c64c4887a183720c802d323de8a5fd76d372dd"
154+
url: "https://pub.dev"
131155
source: hosted
132156
version: "2.0.11"
133157
path_provider_android:
134158
dependency: transitive
135159
description:
136160
name: path_provider_android
137-
url: "https://pub.dartlang.org"
161+
sha256: "4d5542667150f5b779ba411dd5dc0b674a85d1355e45bda2877e0e82f4ad08d8"
162+
url: "https://pub.dev"
138163
source: hosted
139164
version: "2.0.20"
140165
path_provider_ios:
141166
dependency: transitive
142167
description:
143168
name: path_provider_ios
144-
url: "https://pub.dartlang.org"
169+
sha256: "03d639406f5343478352433f00d3c4394d52dac8df3d847869c5e2333e0bbce8"
170+
url: "https://pub.dev"
145171
source: hosted
146172
version: "2.0.11"
147173
path_provider_linux:
148174
dependency: transitive
149175
description:
150176
name: path_provider_linux
151-
url: "https://pub.dartlang.org"
177+
sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379
178+
url: "https://pub.dev"
152179
source: hosted
153180
version: "2.1.7"
154181
path_provider_macos:
155182
dependency: transitive
156183
description:
157184
name: path_provider_macos
158-
url: "https://pub.dartlang.org"
185+
sha256: "2a97e7fbb7ae9dcd0dfc1220a78e9ec3e71da691912e617e8715ff2a13086ae8"
186+
url: "https://pub.dev"
159187
source: hosted
160188
version: "2.0.6"
161189
path_provider_platform_interface:
162190
dependency: transitive
163191
description:
164192
name: path_provider_platform_interface
165-
url: "https://pub.dartlang.org"
193+
sha256: "27dc7a224fcd07444cb5e0e60423ccacea3e13cf00fc5282ac2c918132da931d"
194+
url: "https://pub.dev"
166195
source: hosted
167196
version: "2.0.4"
168197
path_provider_windows:
169198
dependency: transitive
170199
description:
171200
name: path_provider_windows
172-
url: "https://pub.dartlang.org"
201+
sha256: "1cc550ec9881c47cb836f37e4db8f94405bd4e33b63efdd20cb9c7c68be6034b"
202+
url: "https://pub.dev"
173203
source: hosted
174204
version: "2.1.2"
175205
platform:
176206
dependency: transitive
177207
description:
178208
name: platform
179-
url: "https://pub.dartlang.org"
209+
sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
210+
url: "https://pub.dev"
180211
source: hosted
181212
version: "3.1.0"
182213
plugin_platform_interface:
183214
dependency: transitive
184215
description:
185216
name: plugin_platform_interface
186-
url: "https://pub.dartlang.org"
217+
sha256: "075f927ebbab4262ace8d0b283929ac5410c0ac4e7fc123c76429564facfb757"
218+
url: "https://pub.dev"
187219
source: hosted
188220
version: "2.1.2"
189221
process:
190222
dependency: transitive
191223
description:
192224
name: process
193-
url: "https://pub.dartlang.org"
225+
sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
226+
url: "https://pub.dev"
194227
source: hosted
195228
version: "4.2.4"
196229
sky_engine:
@@ -202,65 +235,74 @@ packages:
202235
dependency: transitive
203236
description:
204237
name: source_span
205-
url: "https://pub.dartlang.org"
238+
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
239+
url: "https://pub.dev"
206240
source: hosted
207-
version: "1.9.0"
241+
version: "1.9.1"
208242
stack_trace:
209243
dependency: transitive
210244
description:
211245
name: stack_trace
212-
url: "https://pub.dartlang.org"
246+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
247+
url: "https://pub.dev"
213248
source: hosted
214-
version: "1.10.0"
249+
version: "1.11.0"
215250
stream_channel:
216251
dependency: transitive
217252
description:
218253
name: stream_channel
219-
url: "https://pub.dartlang.org"
254+
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
255+
url: "https://pub.dev"
220256
source: hosted
221-
version: "2.1.0"
257+
version: "2.1.1"
222258
string_scanner:
223259
dependency: transitive
224260
description:
225261
name: string_scanner
226-
url: "https://pub.dartlang.org"
262+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
263+
url: "https://pub.dev"
227264
source: hosted
228-
version: "1.1.1"
265+
version: "1.2.0"
229266
term_glyph:
230267
dependency: transitive
231268
description:
232269
name: term_glyph
233-
url: "https://pub.dartlang.org"
270+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
271+
url: "https://pub.dev"
234272
source: hosted
235273
version: "1.2.1"
236274
test_api:
237275
dependency: transitive
238276
description:
239277
name: test_api
240-
url: "https://pub.dartlang.org"
278+
sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
279+
url: "https://pub.dev"
241280
source: hosted
242-
version: "0.4.12"
281+
version: "0.4.16"
243282
vector_math:
244283
dependency: transitive
245284
description:
246285
name: vector_math
247-
url: "https://pub.dartlang.org"
286+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
287+
url: "https://pub.dev"
248288
source: hosted
249-
version: "2.1.2"
289+
version: "2.1.4"
250290
win32:
251291
dependency: transitive
252292
description:
253293
name: win32
254-
url: "https://pub.dartlang.org"
294+
sha256: "6b75ac2ddd42f5c226fdaf4498a2b04071c06f1f2b8f7ab1c3f77cc7f2285ff1"
295+
url: "https://pub.dev"
255296
source: hosted
256297
version: "2.7.0"
257298
xdg_directories:
258299
dependency: transitive
259300
description:
260301
name: xdg_directories
261-
url: "https://pub.dartlang.org"
302+
sha256: "11541eedefbcaec9de35aa82650b695297ce668662bbd6e3911a7fabdbde589f"
303+
url: "https://pub.dev"
262304
source: hosted
263305
version: "0.2.0+2"
264306
sdks:
265-
dart: ">=2.17.0 <3.0.0"
307+
dart: ">=2.18.0 <3.0.0"
266308
flutter: ">=3.0.0"

0 commit comments

Comments
 (0)