-
Notifications
You must be signed in to change notification settings - Fork 126
Description
When device is in airplane mode and the webxview is created with initial content URL this exception is thrown.
Seems to be searching an empty list looking for an error to use to call the callback.
If you pass the widget a onWebResourceError callback or not, it still happens.
════════ Exception caught by services library ══════════════════════════════════
The following StateError was thrown during a platform message callback:
Bad state: No element
When the exception was thrown, this was the stack
#0 ListMixin.singleWhere (dart:collection/list.dart:202:5)
#1 _WebViewXState.build.onWebResourceError
package:webviewx/…/impl/mobile.dart:172
#2 _PlatformCallbacksHandler.onWebResourceError
package:webview_flutter/src/webview.dart:490
#3 WebKitWebViewPlatformController.navigationDelegate..