-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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 repainting with some interactions (Iframe reloading) #71888
Comments
Reproducible on latest Note: running with Canvas-Kit the issue does not reproduce by hovering the button but still reproduces by resizing the webpage. flutter doctor -v
|
I'd like to say that the iframe works just fine if you wrap all widgets that appear on top of it with PointerInterceptor. |
@adrianflutur can you post your code? what were you wrapping exactly? |
@ditman sure ...
Stack(
children: <Widget>[
HtmlElementView(
viewType: _htmlElementViewType,
), // *** Must come before the rest...
for (var i = 1; i <= 5; i++)
PointerInterceptor( // HERE
child: Container(
// *** i >= 5
color: Colors.transparent, // *** any color will do
child: RaisedButton(
// *** not sure if other widgets trigger this
onPressed: () {},
)),
),
],
),
... |
Interesting @adrianflutur, this is definitely a side effect of the |
@ditman hahah yeah well, this package managed to fix two of the most frustrating issues related to HtmlElementView in one shot, so...if it works, it works I guess :-) at least until it's fixed for real |
I've started working on this, please track progress here: #80524 |
I've uploaded an updated version of the app with the Engine fix applied, and it seems to work much better! Yay! https://dit-iframe-reload-example.web.app I'll keep testing other problematic apps |
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 |
This has been reported earlier, but I thought I'd try to produce the simplest flutter app that'd reproduce this (no MaterialApp, Scaffolding or anything).
Steps to Reproduce
Expand this for a main.dart that can be used on top of the default app's one:
Or click here to see a deployed version.
Note that in the code above there are comments that start with
***
. Those mean that those lines are needed for the bug to reproduce. If removed/changed, the bug might not show up.Expected results:
Since the app is stateless, and there's no code on it whatsoever to repaint anything; I'd expect the iframe to not reload when moving the mouse around, or resizing the window.
Actual results:
The iframe reloads (flashes pink, then the video shows again) when:
Logs
The text was updated successfully, but these errors were encountered: