This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 3 files changed +9
-5
lines changed
packages/webview_flutter/webview_flutter 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.1.1
2
+
3
+ * Fixed ` _CastError ` that was thrown when running the example App.
4
+
1
5
## 2.1.0
2
6
3
7
* Migrated to fully federated architecture.
Original file line number Diff line number Diff line change @@ -302,15 +302,15 @@ class NavigationControls extends StatelessWidget {
302
302
(BuildContext context, AsyncSnapshot <WebViewController > snapshot) {
303
303
final bool webViewReady =
304
304
snapshot.connectionState == ConnectionState .done;
305
- final WebViewController controller = snapshot.data! ;
305
+ final WebViewController ? controller = snapshot.data;
306
306
return Row (
307
307
children: < Widget > [
308
308
IconButton (
309
309
icon: const Icon (Icons .arrow_back_ios),
310
310
onPressed: ! webViewReady
311
311
? null
312
312
: () async {
313
- if (await controller.canGoBack ()) {
313
+ if (await controller! .canGoBack ()) {
314
314
await controller.goBack ();
315
315
} else {
316
316
// ignore: deprecated_member_use
@@ -326,7 +326,7 @@ class NavigationControls extends StatelessWidget {
326
326
onPressed: ! webViewReady
327
327
? null
328
328
: () async {
329
- if (await controller.canGoForward ()) {
329
+ if (await controller! .canGoForward ()) {
330
330
await controller.goForward ();
331
331
} else {
332
332
// ignore: deprecated_member_use
@@ -343,7 +343,7 @@ class NavigationControls extends StatelessWidget {
343
343
onPressed: ! webViewReady
344
344
? null
345
345
: () {
346
- controller.reload ();
346
+ controller! .reload ();
347
347
},
348
348
),
349
349
],
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: webview_flutter
2
2
description : A Flutter plugin that provides a WebView widget on Android and iOS.
3
3
repository : https://github.com/flutter/plugins/tree/master/packages/webview_flutter/webview_flutter
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
5
- version : 2.1.0
5
+ version : 2.1.1
6
6
7
7
environment :
8
8
sdk : " >=2.14.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments