File tree 3 files changed +9
-5
lines changed
packages/webview_flutter/webview_flutter_wkwebview
3 files changed +9
-5
lines changed 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
+
1
5
## 2.0.13
2
6
3
7
* Extract WKWebView implementation from ` webview_flutter ` .
Original file line number Diff line number Diff line change @@ -289,15 +289,15 @@ class _NavigationControls extends StatelessWidget {
289
289
final bool webViewReady =
290
290
snapshot.connectionState == ConnectionState .done;
291
291
final WebViewController ? controller = snapshot.data;
292
- if (controller == null ) return Container ();
292
+
293
293
return Row (
294
294
children: < Widget > [
295
295
IconButton (
296
296
icon: const Icon (Icons .arrow_back_ios),
297
297
onPressed: ! webViewReady
298
298
? null
299
299
: () async {
300
- if (await controller.canGoBack ()) {
300
+ if (await controller! .canGoBack ()) {
301
301
await controller.goBack ();
302
302
} else {
303
303
// ignore: deprecated_member_use
@@ -313,7 +313,7 @@ class _NavigationControls extends StatelessWidget {
313
313
onPressed: ! webViewReady
314
314
? null
315
315
: () async {
316
- if (await controller.canGoForward ()) {
316
+ if (await controller! .canGoForward ()) {
317
317
await controller.goForward ();
318
318
} else {
319
319
// ignore: deprecated_member_use
@@ -330,7 +330,7 @@ class _NavigationControls extends StatelessWidget {
330
330
onPressed: ! webViewReady
331
331
? null
332
332
: () {
333
- controller.reload ();
333
+ controller! .reload ();
334
334
},
335
335
),
336
336
],
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: webview_flutter_wkwebview
2
2
description : A Flutter plugin that provides a WebView widget based on Apple's WKWebView control.
3
3
repository : https://github.com/flutter/plugins/tree/master/packages/webview_flutter/webview_flutter_wkwebview
4
4
issue_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
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