-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[web] Regression : Containers and CustomPaints are always drawn behind images #44845
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
Comments
The bug now happens in the last dev release : Flutter 1.12.1 • channel dev • https://github.com/flutter/flutter.git |
Can confirm this bug and it is a critical problem |
Occurs even if the image is part of a parent widget, not just with a Edit: Temporary "fix" is wrapping the image with an Opacity of 0.99 |
Any ETA for the Fix? This Bug is critical and breaks many applications completly as this is a very common thing |
A short-term workaround is to wrap the
|
@yjbanov But why did it work in the past and now not? What significant change was that? Maybe I can help...I recognized some severe ui and gesture issues in the last time... |
I had a similar problem, and RepaintBoundary fixed it. Thanks! |
@ignaciotcrespo tried that with The |
It seems that in my case happened only in the mobile browser. On the desktop browser worked fine until the last tests (on 1.12.13). |
@rxlabz there was a merge in master branch the last time, can you test that again? I will test that now too. |
Ok, it's not changed yet. Just tested it right now on newest flutter version v1.12.17-pre.67 |
@Ahmadre thanks, yes I tested too and the problem is not fixed yet. |
It worked in the past because we didn't have a bug, and now we do. The significant change was that we added a heuristic where we prefer an |
Happy Holidays. My wish for Santa is that this Bug be fixed before (New Year) so I can stop beeing stuck at 1.10.16 :) Thank you Flutter for a year of great work, please don't get stuck with critcal bugs like these that made developers run away from Tools like React Native in droves. |
Thank you for the work on this bug. Unfortunately, in the latest master there are now issues with the positioning of Containers / CustomerPainters. In the project linked by rxlabz at the top you can see that if you press the RaisedButton the "OnPressed Overlay" effect is not at the correct position but moved a bit to the top left. I also see this many times with my web project that Containers with decorations are at the wrong position when everything works fine on iOS and Android. Flutter (Channel master, v1.13.8-pre.39, on Microsoft Windows [Version 10.0.18362.535], locale en-DE) |
@TobiasHeidingsfeld Hi Tobias, I only see this problem if I "zoom" in the page. Can you provide a screenshot please ? |
@rxlabz Added screenshots at https://imgur.com/a/q1or9em as github would not let me. Its two screenshots, the second has blue marking of two bugs, one is the "OnPressed Overlay" of the RaisedButton and the other is the yellow Box which should be aligned top right, but actually is quite far away from top right. Both issues render correctly on android/ios just are bugged on lastest web master (version see above) |
@TobiasHeidingsfeld on my side this problem only appears when is not in 100% scale https://youtu.be/IyIF7fr0fAs so it's seems not related to this issue. |
I played around a little and noticed for me all works fine on 80% but is broken on 100%. Screenshots https://imgur.com/a/wo8v2hY |
I also noticed that performance is significantly slower than in versions 1.10.16 and before in every semi complex composition of containers and images |
We are looking into zoom level issue. @TobiasHeidingsfeld can you please file a new issue for performance with sample complex composition to repro. |
Update: devicePixelRatio (scaling and high-dpi devices) issue resolved in flutter/engine#15327 , should land shortly. |
@ferhatb, with the latest version - Flutter (Channel master, v1.13.8-pre.58, on Mac OS X 10.15.2 19C57, locale en-NL), everything looks messed up on latest Chrome mobile. It also looks messed up in Safari on an iPad. To date, version 1.10.16 seems to be the version that worked best, so I'll be sticking to that and test new updates in parallel. |
@Constans I have high hopes that with the latest fix (flutter/engine#15327) things will work. Somehow "flutter upgrade" in the master channel keeps me on an version from 13 hours ago, even if there are many commits in the master since then. When can I update to the latest version to try? @ferhatb Thank you for the work on this important issue! Much appreciated |
@TobiasHeidingsfeld, it's a good thing we can switch between versions and channels in a matter of seconds. 1.10.16 works great but staying with that version, next to having a couple of nasty bugs, keeps us out of testing the new stuff that gets added with each update. I'm also thankful to the Flutter team and looking forward with confidence to the updates that are to come this year. |
@ferhatb Will try to create a sample that's more performant on the 1.10.16 version. For now, I can mostly see it in my multiplayer poker game. Performance is about the same on iOS/Android for the versions but slower on the web. I can not send the source for this sadly, so I can try to find ways to reproduce it in a sample project. |
@ferhatb I could update to the latest master and now all the bugs in the sample project are gone and the performance is also almost back to how it was before. As far as I can see there is still on issue left, positions can be wrong when using a AnimatedScale Widget but all else seems great! |
@ferhatb, @TobiasHeidingsfeld I wanted to confirm, but in Flutter 1.13.8-pre.70 things still are off-scaled on mobile (Android phone - Chrome latest and iPad tablet - Safari). It seems that the hit area is placed correctly, only the visual representation is under-scaled Also on the desktop web browser - Chrome latest, the images flicker (reload) when I hover a Card with multiple positioned. Images are loaded using FadeInImage. Also positioning is off in a ClipOval (avatar image). So for now, I switch back to 1.10.16 Good luck!
|
@TobiasHeidingsfeld, take a look at this solution on solving caching when serving the main file. |
@ferhatb , the latest version that I tested works great on most browsers/devices.
There are some glitches on Safari (macOS && iOS). Images are flickering in the browser on the laptop - macOS (even if I don't have the inspect opened) when I scroll some vertical ListViews made of Cards with multiple positioned elements inside or hover buttons in those Cards. Also, there is a ClipOval masking issue, that seems to be offset and moving around when I scroll or scale up/down the browser: I've opened 2 issues for the 2 problems: #48681 && #48683 Thank you && great work so far! |
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 |
Uh oh!
There was an error while loading. Please reload this page.
Since 1.10.17, if a Stack contains an image and colored Container or CustomPaint on top of it, drawn shapes are not visible.
master branch : Flutter (Channel master, v1.10.17-pre.74, on Mac OS X 10.14.6 18G1012, locale fr-FR)
On dev branch 1.10.16 : works as expected
On master branch and dev branch 1.12.1
On master branch with an image with half opacity
Steps to Reproduce
You can download and run the project
Target Platform : Web
Target OS version/browser : MacOS Chrome
Devices: iMac, iPhone, iPad
Code
The text was updated successfully, but these errors were encountered: