From c5bbe69c85290142c8d286884ecec5d2e3e0d37d Mon Sep 17 00:00:00 2001 From: "enoch.zeen" Date: Mon, 26 Sep 2022 17:24:58 +0800 Subject: [PATCH] fix: type 'Null' is not a subtype of type 'bool' E/flutter (10050): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'bool' E/flutter (10050): #0 RendererPriorityPolicy.fromMap (package:flutter_inappwebview/src/types.dart:4598:38) E/flutter (10050): #1 AndroidInAppWebViewOptions.fromMap (package:flutter_inappwebview/src/in_app_webview/android/in_app_webview_options.dart:422:61) E/flutter (10050): #2 InAppWebViewGroupOptions.fromMap (package:flutter_inappwebview/src/in_app_webview/in_app_webview_options.dart:72:38) E/flutter (10050): #3 InAppWebViewController.getOptions (package:flutter_inappwebview/src/in_app_webview/in_app_webview_controller.dart:1643:39) E/flutter (10050): E/flutter (10050): #4 _WebViewTabState._buildWebView. (package:flutter_browser/webview_tab.dart:158:39) E/flutter (10050): --- lib/src/types.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/types.dart b/lib/src/types.dart index be9eebb34..3efef77ad 100755 --- a/lib/src/types.dart +++ b/lib/src/types.dart @@ -4595,7 +4595,7 @@ class RendererPriorityPolicy { ? RendererPriorityPolicy( rendererRequestedPriority: RendererPriority.fromValue(map["rendererRequestedPriority"]), - waivedWhenNotVisible: map["waivedWhenNotVisible"]) + waivedWhenNotVisible: map["waivedWhenNotVisible"] ?? false) : null; } }