You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[webview_flutter] Copies app-facing implementation of webview_flutter from v4_webview (flutter#6856)
* copy code from v4_webview
* version bump and readme update
* work towards better readme
* improvements
* more readme progress
* improvements
* fix main and update more readme
* excerpt changes and more 3.0 diffs
* cookie manager update
* remove packages from exclude list
* lint
* better range
* isForMainFrame
* load page after waiting for widget
* fix integration tests
* improve readme a bit
* collapse changelong. update platform-specific wording. include in excerpt tests
* use platform implementation packages
* include missing exports
* PR comments
* correct spelling
* interface dev dependency
* move other usage above migration
* remove interface classes
On iOS the WebView widget is backed by a [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview);
9
+
On iOS the WebView widget is backed by a [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview).
8
10
On Android the WebView widget is backed by a [WebView](https://developer.android.com/reference/android/webkit/WebView).
9
11
10
12
|| Android | iOS |
11
13
|-------------|----------------|------|
12
14
|**Support**| SDK 19+ or 20+ | 9.0+ |
13
15
14
16
## Usage
15
-
Add `webview_flutter` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/platform-integration/platform-channels). If you are targeting Android, make sure to read the *Android Platform Views* section below to choose the platform view mode that best suits your needs.
16
-
17
-
You can now include a WebView widget in your widget tree. See the
See the Dartdocs for [WebViewController](https://pub.dev/documentation/webview_flutter/latest/webview_flutter/WebViewController-class.html)
61
+
and [WebViewWidget](https://pub.dev/documentation/webview_flutter/latest/webview_flutter/WebViewWidget-class.html)
62
+
for more details.
34
63
64
+
### Android Platform Views
35
65
36
-
### Using Hybrid Composition
66
+
This plugin uses
67
+
[Platform Views](https://flutter.dev/docs/development/platform-integration/platform-views) to embed
68
+
the Android’s WebView within the Flutter app.
37
69
38
-
The mode is currently enabled by default. You should however make sure to set the correct `minSdkVersion` in `android/app/build.gradle` if it was previously lower than 19:
70
+
You should however make sure to set the correct `minSdkVersion` in `android/app/build.gradle` if it was previously lower than 19:
39
71
40
72
```groovy
41
73
android {
@@ -45,47 +77,67 @@ android {
45
77
}
46
78
```
47
79
48
-
### Using Virtual displays
80
+
### Platform-Specific Features
49
81
50
-
1. Set the correct `minSdkVersion` in `android/app/build.gradle` (if it was previously lower than 20):
82
+
Many classes have a subclass or an underlying implementation that provides access to platform-specific
83
+
features.
51
84
52
-
```groovy
53
-
android {
54
-
defaultConfig {
55
-
minSdkVersion 20
56
-
}
57
-
}
58
-
```
85
+
To access platform-specific features, start by adding the platform implementation packages to your
86
+
app or package:
59
87
60
-
2. Set `WebView.platform = AndroidWebView();` in `initState()`.
0 commit comments