-
Notifications
You must be signed in to change notification settings - Fork 121
error: LateInitializationError: Field 'connector' has not been initialized. #36
Comments
Hi, I found out where the problem is coming from
...
if (widget.initialSourceType == SourceType.html ||
widget.initialSourceType == SourceType.urlBypass ||
(widget.initialSourceType == SourceType.url &&
widget.initialContent == 'about:blank')) {
// This function sets the `connector` everytime the page is loaded
_connectJsToFlutter(then: _callOnWebViewCreatedCallback);
} else {
// Here the `connector` doesn't get set, so you end up getting
// error: LateInitializationError: Field 'connector' has not been initialized
//
// We reach this part of the code when the `sourcetype` is url
// and the url is not `about:blank`
_callOnWebViewCreatedCallback();
}
... As you can see inside the Now, there's a small problem here:
I could add a partial workaround for this, such that the A solution would be to change the sourceType to |
thank you for your response. I have to try using |
Closing this for now, please open another issue if you encounter any more issues. |
@adrianflutur why is this important issue closed? The most important function in this whole plugin is NOT WORKING! |
Hello,
I followed your example for running JS code from dart:
I've added this code:
But when I run this code I always get this error:
error: LateInitializationError: Field 'connector' has not been initialized.
.Additional info:
The text was updated successfully, but these errors were encountered: