Skip to content

Commit e0f6d79

Browse files
committed
[webview_flutter_lwe] Update webview_flutter_lwe to v0.2.0
1 parent 380d1a2 commit e0f6d79

File tree

13 files changed

+1646
-904
lines changed

13 files changed

+1646
-904
lines changed

packages/webview_flutter_lwe/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.0
2+
3+
* Update webivew_flutter to 4.0.2.
4+
* Update webview_flutter_platform_interface to 2.0.1.
5+
16
## 0.1.1
27

38
* Use only error type names defined in `web_resource_error.dart`.

packages/webview_flutter_lwe/README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ This package is not an _endorsed_ implementation of `webview_flutter`. Therefore
2020

2121
```yaml
2222
dependencies:
23-
webview_flutter: ^3.0.4
24-
webview_flutter_lwe: ^0.1.1
23+
webview_flutter: ^4.0.2
24+
webview_flutter_lwe: ^0.2.0
2525
```
2626
2727
## Example
@@ -30,16 +30,27 @@ dependencies:
3030
import 'package:webview_flutter/webview_flutter.dart';
3131

3232
class WebViewExample extends StatefulWidget {
33-
const WebViewExample({Key? key}) : super(key: key);
33+
const WebViewExample({super.key});
3434

3535
@override
36-
WebViewExampleState createState() => WebViewExampleState();
36+
State<WebViewExample> createState() => _WebViewExampleState();
3737
}
3838

39-
class WebViewExampleState extends State<WebViewExample> {
39+
class _WebViewExampleState extends State<WebViewExample> {
40+
final WebViewController _controller = WebViewController();
41+
42+
@override
43+
void initState() {
44+
super.initState();
45+
46+
_controller.loadRequest(Uri.parse('https://flutter.dev'));
47+
}
48+
4049
@override
4150
Widget build(BuildContext context) {
42-
return WebView(initialUrl: 'https://flutter.dev');
51+
return Scaffold(
52+
body: WebViewWidget(controller: _controller),
53+
);
4354
}
4455
}
4556
```

0 commit comments

Comments
 (0)