From 5e87faf3db815ec38efd4c9f268a78d43a881622 Mon Sep 17 00:00:00 2001 From: Emmanuel Garcia Date: Tue, 9 Feb 2021 10:44:32 -0800 Subject: [PATCH] Add section about how to use Material components in an app using WebView (#3521) --- packages/webview_flutter/CHANGELOG.md | 4 ++++ packages/webview_flutter/README.md | 9 ++++++--- packages/webview_flutter/pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/webview_flutter/CHANGELOG.md b/packages/webview_flutter/CHANGELOG.md index 9c54b4cc207d..b3218e296d98 100644 --- a/packages/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/CHANGELOG.md @@ -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`. diff --git a/packages/webview_flutter/README.md b/packages/webview_flutter/README.md index df554eb5123c..94000772ca71 100644 --- a/packages/webview_flutter/README.md +++ b/packages/webview_flutter/README.md @@ -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 @@ -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). diff --git a/packages/webview_flutter/pubspec.yaml b/packages/webview_flutter/pubspec.yaml index 11769acce2ba..5d8e512b5aa5 100644 --- a/packages/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/pubspec.yaml @@ -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: