Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Airplane mode throws exception #95

Open
LeeMatthewHiggins opened this issue Oct 21, 2022 · 0 comments · May be fixed by #104
Open

Airplane mode throws exception #95

LeeMatthewHiggins opened this issue Oct 21, 2022 · 0 comments · May be fixed by #104

Comments

@LeeMatthewHiggins
Copy link

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 LeeMatthewHiggins changed the title Airplane mode throws excpetion Airplane mode throws exception Oct 21, 2022
gquarles added a commit to gquarles/webviewx that referenced this issue Jan 11, 2023
@gquarles gquarles linked a pull request Jan 11, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant