Skip to content

Commit 5e87faf

Browse files
author
Emmanuel Garcia
authored
Add section about how to use Material components in an app using WebView (flutter#3521)
1 parent f217be7 commit 5e87faf

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

packages/webview_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.0-nullsafety.5
2+
3+
* Add section to the wiki explaining how to use Material components.
4+
15
## 2.0.0-nullsafety.4
26

37
* Update integration test to workaround an iOS 14 issue with `evaluateJavascript`.

packages/webview_flutter/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ You can now include a WebView widget in your widget tree. See the
1414
[WebView](https://pub.dev/documentation/webview_flutter/latest/webview_flutter/WebView-class.html)
1515
widget's Dartdoc for more details on how to use the widget.
1616

17-
18-
1917
## Android Platform Views
2018
The WebView is relying on
2119
[Platform Views](https://flutter.dev/docs/development/platform-integration/platform-views) to embed
@@ -66,5 +64,10 @@ android {
6664
// Required by the Flutter WebView plugin.
6765
minSdkVersion 19
6866
}
69-
}
67+
}
7068
```
69+
70+
#### Enable Material Components for Android
71+
72+
To use Material Components when the user interacts with input elements in the WebView,
73+
follow the steps described in the [Enabling Material Components instructions](https://flutter.dev/docs/deployment/android#enabling-material-components).

packages/webview_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: webview_flutter
22
description: A Flutter plugin that provides a WebView widget on Android and iOS.
3-
version: 2.0.0-nullsafety.4
3+
version: 2.0.0-nullsafety.5
44
homepage: https://github.com/flutter/plugins/tree/master/packages/webview_flutter
55

66
environment:

0 commit comments

Comments
 (0)