File tree Expand file tree Collapse file tree
packages/webview_flutter/webview_flutter_wkwebview Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 2.0.14
2+
3+ * Update example App so navigation menu loads immediatly but only becomes available when ` WebViewController ` is available (same behavior as example App in webview_flutter package).
4+
15## 2.0.13
26
37* Extract WKWebView implementation from ` webview_flutter ` .
Original file line number Diff line number Diff line change @@ -289,15 +289,15 @@ class _NavigationControls extends StatelessWidget {
289289 final bool webViewReady =
290290 snapshot.connectionState == ConnectionState .done;
291291 final WebViewController ? controller = snapshot.data;
292- if (controller == null ) return Container ();
292+
293293 return Row (
294294 children: < Widget > [
295295 IconButton (
296296 icon: const Icon (Icons .arrow_back_ios),
297297 onPressed: ! webViewReady
298298 ? null
299299 : () async {
300- if (await controller.canGoBack ()) {
300+ if (await controller! .canGoBack ()) {
301301 await controller.goBack ();
302302 } else {
303303 // ignore: deprecated_member_use
@@ -313,7 +313,7 @@ class _NavigationControls extends StatelessWidget {
313313 onPressed: ! webViewReady
314314 ? null
315315 : () async {
316- if (await controller.canGoForward ()) {
316+ if (await controller! .canGoForward ()) {
317317 await controller.goForward ();
318318 } else {
319319 // ignore: deprecated_member_use
@@ -330,7 +330,7 @@ class _NavigationControls extends StatelessWidget {
330330 onPressed: ! webViewReady
331331 ? null
332332 : () {
333- controller.reload ();
333+ controller! .reload ();
334334 },
335335 ),
336336 ],
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: webview_flutter_wkwebview
22description : A Flutter plugin that provides a WebView widget based on Apple's WKWebView control.
33repository : https://github.com/flutter/plugins/tree/master/packages/webview_flutter/webview_flutter_wkwebview
44issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
5- version : 2.0.13
5+ version : 2.0.14
66
77environment :
88 sdk : " >=2.14.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments