webviewx icon indicating copy to clipboard operation
webviewx copied to clipboard

Airplane mode throws exception

Open LeeMatthewHiggins opened this issue 3 years ago • 0 comments

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..

LeeMatthewHiggins avatar Oct 21 '22 11:10 LeeMatthewHiggins