From 609daea2ec939e7719c6b9164a16955a2007d6f7 Mon Sep 17 00:00:00 2001 From: AlexVincent525 Date: Mon, 17 Feb 2020 11:41:49 +0800 Subject: [PATCH] :bug: Fixes opposite flag set to `clearCache`. --- lib/widgets/webview/in_app_webview.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/webview/in_app_webview.dart b/lib/widgets/webview/in_app_webview.dart index 78daa9af..7929bbfc 100755 --- a/lib/widgets/webview/in_app_webview.dart +++ b/lib/widgets/webview/in_app_webview.dart @@ -351,7 +351,7 @@ class _InAppBrowserPageState extends State with AutomaticKeepA crossPlatform: InAppWebViewOptions( applicationNameForUserAgent: 'openjmu-webview', cacheEnabled: widget.withCookie ?? true, - clearCache: widget.withCookie ?? false, + clearCache: !widget.withCookie ?? false, javaScriptCanOpenWindowsAutomatically: true, transparentBackground: true, useOnDownloadStart: true,