Skip to content

Commit

Permalink
fix: type 'Null' is not a subtype of type 'bool'
Browse files Browse the repository at this point in the history
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): pichillilorenzo#1      AndroidInAppWebViewOptions.fromMap (package:flutter_inappwebview/src/in_app_webview/android/in_app_webview_options.dart:422:61)
E/flutter (10050): pichillilorenzo#2      InAppWebViewGroupOptions.fromMap (package:flutter_inappwebview/src/in_app_webview/in_app_webview_options.dart:72:38)
E/flutter (10050): pichillilorenzo#3      InAppWebViewController.getOptions (package:flutter_inappwebview/src/in_app_webview/in_app_webview_controller.dart:1643:39)
E/flutter (10050): <asynchronous suspension>
E/flutter (10050): pichillilorenzo#4      _WebViewTabState._buildWebView.<anonymous closure> (package:flutter_browser/webview_tab.dart:158:39)
E/flutter (10050): <asynchronous suspension>
  • Loading branch information
jonahzheng authored Sep 26, 2022
1 parent ee1b0d7 commit c5bbe69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4595,7 +4595,7 @@ class RendererPriorityPolicy {
? RendererPriorityPolicy(
rendererRequestedPriority:
RendererPriority.fromValue(map["rendererRequestedPriority"]),
waivedWhenNotVisible: map["waivedWhenNotVisible"])
waivedWhenNotVisible: map["waivedWhenNotVisible"] ?? false)
: null;
}
}
Expand Down

0 comments on commit c5bbe69

Please sign in to comment.