File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
packages/webview_flutter/webview_flutter Expand file tree Collapse file tree 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+
15## 2.1.0
26
37* Migrated to fully federated architecture.
Original file line number Diff line number Diff line change @@ -302,15 +302,15 @@ class NavigationControls extends StatelessWidget {
302302 (BuildContext context, AsyncSnapshot <WebViewController > snapshot) {
303303 final bool webViewReady =
304304 snapshot.connectionState == ConnectionState .done;
305- final WebViewController controller = snapshot.data! ;
305+ final WebViewController ? controller = snapshot.data;
306306 return Row (
307307 children: < Widget > [
308308 IconButton (
309309 icon: const Icon (Icons .arrow_back_ios),
310310 onPressed: ! webViewReady
311311 ? null
312312 : () async {
313- if (await controller.canGoBack ()) {
313+ if (await controller! .canGoBack ()) {
314314 await controller.goBack ();
315315 } else {
316316 // ignore: deprecated_member_use
@@ -326,7 +326,7 @@ class NavigationControls extends StatelessWidget {
326326 onPressed: ! webViewReady
327327 ? null
328328 : () async {
329- if (await controller.canGoForward ()) {
329+ if (await controller! .canGoForward ()) {
330330 await controller.goForward ();
331331 } else {
332332 // ignore: deprecated_member_use
@@ -343,7 +343,7 @@ class NavigationControls extends StatelessWidget {
343343 onPressed: ! webViewReady
344344 ? null
345345 : () {
346- controller.reload ();
346+ controller! .reload ();
347347 },
348348 ),
349349 ],
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: webview_flutter
22description : A Flutter plugin that provides a WebView widget on Android and iOS.
33repository : https://github.com/flutter/plugins/tree/master/packages/webview_flutter/webview_flutter
44issue_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
66
77environment :
88 sdk : " >=2.14.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments