New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[web] HtmlElementView has no onPlatformViewCreated #56181
Comments
I went on with my code and realized that the problem is deeper than just asking for a new feature. The fact that there is no callback on creation means that there is no place to call any initialization from. When I create a new |
The optimal solution would be as simple as:
In addition to the extra fields that make it on par with |
@hterkelsen can you please triage this? |
@hterkelsen It seems that something is worked on with this control (eg. PlatformViewController.clearFocus() changed to async). Couldn't this be possibly a time to check this out? It's just a simple callback providing feature parity with other platforms, nothing dangerous. :-) |
Any solution for this, onPlatformViewCreated for HtmlElementView ? |
I use a custom type extended from the original one but it would be nice to see it implemented finally. |
My PR has been merged #84095. Now HtmlElementView support onPlatformViewCreated callback. |
@TahaTesser Looks like this can be closed? |
@LichKing-2234 Is there any way to learn when it actually lands? Or do we need to check every time we upgrade Flutter? |
Hi everyone |
@deakjahn you should run |
I certainly won't do that. I have plugins that rely on a workaround and I don't want to touch that before it goes into stable. I don't want to force my plugin users to unstable channels. I guess it's trying it from time to time then... |
@deakjahn Sure, you can use it after it is stable. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
HtmlElementView
has noonPlatformViewCreated
callback. This callback is primarily important to learn theviewId
of the created view, for instance, to open the platform channel. The underlying code has its own callback in place but the call doesn't get propagated to the upper level.The text was updated successfully, but these errors were encountered: