Skip to content

Commit a103bcd

Browse files
authored
[webview_flutter] Update webview_flutter documentation (flutter#4481)
1 parent d22be76 commit a103bcd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/webview_flutter/webview_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.3.1
2+
3+
* Add iOS-specific note to set `JavascriptMode.unrestricted` in order to set `zoomEnabled: false`.
4+
15
## 2.3.0
26

37
* Add ability to enable/disable zoom functionality.

packages/webview_flutter/webview_flutter/lib/src/webview.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class WebView extends StatefulWidget {
272272
/// A Boolean value indicating whether the WebView should support zooming
273273
/// using its on-screen zoom controls and gestures.
274274
///
275+
/// *Note: On iOS [javascriptMode] must be set to
276+
/// [JavascriptMode.unrestricted] in order to set [zoomEnabled] to false
277+
///
275278
/// By default 'zoomEnabled' is true
276279
final bool zoomEnabled;
277280

packages/webview_flutter/webview_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: webview_flutter
22
description: A Flutter plugin that provides a WebView widget on Android and iOS.
33
repository: https://github.com/flutter/plugins/tree/master/packages/webview_flutter/webview_flutter
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
5-
version: 2.3.0
5+
version: 2.3.1
66

77
environment:
88
sdk: ">=2.14.0 <3.0.0"

0 commit comments

Comments
 (0)