Skip to content

Airplane mode throws exception #95

@LeeMatthewHiggins

Description

@LeeMatthewHiggins

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions