Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Add section about how to use Material components in an app using WebView #3521

Merged
merged 3 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/webview_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.0-nullsafety.5

* Add section to the wiki explaining how to use Material components.

## 2.0.0-nullsafety.4

* Update integration test to workaround an iOS 14 issue with `evaluateJavascript`.
Expand Down
9 changes: 6 additions & 3 deletions packages/webview_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ You can now include a WebView widget in your widget tree. See the
[WebView](https://pub.dev/documentation/webview_flutter/latest/webview_flutter/WebView-class.html)
widget's Dartdoc for more details on how to use the widget.



## Android Platform Views
The WebView is relying on
[Platform Views](https://flutter.dev/docs/development/platform-integration/platform-views) to embed
Expand Down Expand Up @@ -66,5 +64,10 @@ android {
// Required by the Flutter WebView plugin.
minSdkVersion 19
}
}
}
```

#### Enable Material Components for Android

To use Material Components when the user interacts with input elements in the WebView,
follow the steps described in the [Enabling Material Components instructions](https://flutter.dev/docs/deployment/android#enabling-material-components).
2 changes: 1 addition & 1 deletion packages/webview_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: webview_flutter
description: A Flutter plugin that provides a WebView widget on Android and iOS.
version: 2.0.0-nullsafety.4
version: 2.0.0-nullsafety.5
homepage: https://github.com/flutter/plugins/tree/master/packages/webview_flutter

environment:
Expand Down