Skip to content

Commit e7184c2

Browse files
author
Emmanuel Garcia
authored
Fix example in readme (flutter#3169)
1 parent 48a393c commit e7184c2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/webview_flutter/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.5
2+
3+
* Fix example in the readme.
4+
15
## 1.0.4
26

37
* Suppress the `deprecated_member_use` warning in the example app for `ScaffoldMessenger.showSnackBar`.

packages/webview_flutter/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ import 'dart:io';
3737
import 'package:webview_flutter/webview_flutter.dart';
3838
3939
class WebViewExample extends StatefulWidget {
40+
@override
41+
WebViewExampleState createState() => WebViewExampleState();
42+
}
43+
44+
class WebViewExampleState extends State<WebViewExample> {
4045
@override
4146
void initState() {
4247
super.initState();
48+
// Enable hybrid composition.
4349
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
4450
}
4551

packages/webview_flutter/pubspec.yaml

+1-1
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: 1.0.4
3+
version: 1.0.5
44
homepage: https://github.com/flutter/plugins/tree/master/packages/webview_flutter
55

66
environment:

0 commit comments

Comments
 (0)