This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 3 files changed +26
-3
lines changed 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.0.0-nullsafety.5
2
+
3
+ * Add section to the wiki explaining how to use Material components.
4
+
1
5
## 2.0.0-nullsafety.4
2
6
3
7
* Update integration test to workaround an iOS 14 issue with ` evaluateJavascript ` .
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ You can now include a WebView widget in your widget tree. See the
14
14
[ WebView] ( https://pub.dev/documentation/webview_flutter/latest/webview_flutter/WebView-class.html )
15
15
widget's Dartdoc for more details on how to use the widget.
16
16
17
-
18
-
19
17
## Android Platform Views
20
18
The WebView is relying on
21
19
[ Platform Views] ( https://flutter.dev/docs/development/platform-integration/platform-views ) to embed
@@ -68,3 +66,24 @@ android {
68
66
}
69
67
}
70
68
```
69
+
70
+ #### Enable Material Components for Android
71
+
72
+ To use Material Components when the user interacts with input elements,
73
+ follow the steps described in the [ Getting Started guide for Android] ( https://material.io/develop/android/docs/getting-started ) . For example:
74
+
75
+ 1 . Add the dependency on Android's Material in ` <my-app>/android/app/build.gradle ` :
76
+ ``` groovy
77
+ dependencies {
78
+ // ...
79
+ implementation 'com.google.android.material:material:<version>'
80
+ // ...
81
+ }
82
+ ```
83
+ To find out the latest version, visit [ Google Maven] ( https://maven.google.com/web/index.html#com.google.android.material:material ) .
84
+
85
+ 2 . Set the theme in ` <my-app>/android/app/src/main/res/values/styles.xml ` :
86
+ ``` diff
87
+ - <style name="LaunchTheme" parent="Theme.AppCompat">
88
+ + <style name="LaunchTheme" parent="Theme.MaterialComponents.NoActionBar">
89
+ ```
Original file line number Diff line number Diff line change 1
1
name : webview_flutter
2
2
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
4
4
homepage : https://github.com/flutter/plugins/tree/master/packages/webview_flutter
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments