webviewx
webviewx copied to clipboard
errors.dart:187 Uncaught (in promise) Error: LateInitializationError: Field 'connector' has not been initialized.
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)
this is a core issue, it's not your code. callJsMethod is not working in the root
#36