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
Copy file name to clipboardExpand all lines: packages/webview_flutter/CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,17 @@
1
+
## 1.0.0 - Out of developer preview 🎉.
2
+
3
+
* Bumped the minimal Flutter SDK to 1.22 where platform views are out of developer preview, and
4
+
performing better on iOS. Flutter 1.22 no longer requires adding the
5
+
`io.flutter.embedded_views_preview` flag to `Info.plist`.
6
+
7
+
* Added support for Hybrid Composition on Android (see opt-in instructions in [README](https://github.com/flutter/plugins/blob/master/packages/webview_flutter/README.md#android))
8
+
* Lowered the required Android API to 19 (was previously 20): [#23728](https://github.com/flutter/flutter/issues/23728).
@@ -7,30 +7,58 @@ A Flutter plugin that provides a WebView widget.
7
7
On iOS the WebView widget is backed by a [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview);
8
8
On Android the WebView widget is backed by a [WebView](https://developer.android.com/reference/android/webkit/WebView).
9
9
10
-
## Developers Preview Status
11
-
The plugin relies on Flutter's new mechanism for embedding Android and iOS views.
12
-
As that mechanism is currently in a developers preview, this plugin should also be
13
-
considered a developers preview.
10
+
## Usage
11
+
Add `webview_flutter` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
14
12
15
-
Known issues are tagged with the [platform-views](https://github.com/flutter/flutter/labels/a%3A%20platform-views) and/or [webview](https://github.com/flutter/flutter/labels/p%3A%20webview) labels.
13
+
You can now include a WebView widget in your widget tree. See the
widget's Dartdoc for more details on how to use the widget.
16
16
17
-
To use this plugin on iOS you need to opt-in for the embedded views preview by
18
-
adding a boolean property to the app's `Info.plist` file, with the key `io.flutter.embedded_views_preview`
19
-
and the value `YES`.
20
17
21
-
## Keyboard support - not ready for production use
22
-
Keyboard support within webviews is experimental. The Android version relies on some low-level knobs that have not been well tested
23
-
on a broad spectrum of devices yet, and therefore **it is not recommended to rely on webview keyboard in production apps yet**.
24
-
See the [webview-keyboard](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22p%3A+webview-keyboard%22) for known issues with keyboard input.
25
18
26
-
## Setup
19
+
## Android Platform Views
20
+
The WebView is relying on
21
+
[Platform Views](https://flutter.dev/docs/development/platform-integration/platform-views) to embed
22
+
the Android’s webview within the Flutter app. By default a Virtual Display based platform view
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
44
+
}
45
+
46
+
@override
47
+
Widget build(BuildContext context) {
48
+
return WebView(
49
+
initialUrl: 'https://flutter.dev',
50
+
);
51
+
}
52
+
}
53
+
```
54
+
55
+
`SurfaceAndroidWebView()` requires [API level 19](https://developer.android.com/studio/releases/platforms?hl=th#4.4). The plugin itself doesn't enforce the API level, so if you want to make the app available on devices running this API level or above, add the following to `<your-app>/android/app/build.gradle`:
34
56
35
-
You can now include a WebView widget in your widget tree.
36
-
See the WebView widget's Dartdoc for more details on how to use the widget.
0 commit comments