webviewx icon indicating copy to clipboard operation
webviewx copied to clipboard

errors.dart:187 Uncaught (in promise) Error: LateInitializationError: Field 'connector' has not been initialized.

Open atove opened this issue 3 years ago • 2 comments

code :

onPageFinished: (String _url) {
    controller!.getTitle().then((value) {
      if (widget.setTitle != null) {
        widget.setTitle!(value);
      }
      return value;
    });
  },

flutter run -d chrome --web-renderer html

Uncaught (in promise) Error: LateInitializationError: Field 'connector' has not been initialized. at Object.throw_ [as throw] (errors.dart:236:49) at web.WebViewXController.new.get connector [as connector] (web.dart:19:20) at web.WebViewXController.new.getTitle (web.dart:227:34) at index.dart:114:11 at _RootZone.runUnary (zone.dart:1613:54) at _FutureListener.then.handleValue (future_impl.dart:155:18) at handleValueCallback (future_impl.dart:707:44) at Function._propagateToListeners (future_impl.dart:736:13) at _Future.new.[_complete] (future_impl.dart:533:7) at future.dart:312:15 at internalCallback (isolate_helper.dart:48:19)

atove avatar Feb 20 '22 09:02 atove

this is a core issue, it's not your code. callJsMethod is not working in the root

Ahmadre avatar Mar 22 '22 15:03 Ahmadre

#36

SlickSlime avatar Jun 14 '22 13:06 SlickSlime