-
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
Visibility not restored for Hero after pop #40239
Comments
@goderbauer It's probably not introduced in that PR. We didn't handle the case where |
But prior to that PR we would restore the visibility of the from Hero once the flight is completed so it would always be visible when you do the pop, no? |
Sorry I phrased it poorly. We set offstage to false when the animation finishes (i.e. in an animation status change callback) but there's no animation to begin with because the |
I wonder what is the expected behavior of this situation |
My original plan was to fade in the toHero (since we're fading out the hero if the flight is aborted) but it doesn't look as good as I expected because the hero |
@LongCatIsLooong I think ending it if fromHero is null make sense. What about the fromHero is keptalive, will the hero transition trigger in this case? |
We met the same problem. Hope you guys can fix it soon. Otherwise we can only downgrade the flutter sdk. |
Oh I didn't realize #37341 keeps the original Hero invisible. |
Why is this issue closed? It is not solved. |
@dshukertjr are you using the master channel? If you are and the issue is still reproducible, could you provide a minimal repro? |
@LongCatIsLooong No, I'm using the stable channel. Is the issue solved in the master channel? |
@dshukertjr it should be. The issue was closed because #40306 was merged. |
This issue is not solved in 1.9.1+hotfix.4 !!!! |
@LongCatIsLooong I'm still facing this issue on stable branch version 1.9.1+hotfix4. Could you please double check if the issue is solved in this version ? Thanks. |
@vitor-gyant it is not in 1.9.1. The earliest version with the fix is v1.10.4: 6430012. |
@LongCatIsLooong I see. Any plans to cherry pick it to 1.9 on the stable branch ? |
Unfortunately, not that I know of. You could try applying the patch locally, or consider switching to beta/dev/master: https://github.com/flutter/flutter/wiki/Flutter-build-release-channels. |
This caused a severe regression in our app as we use hero animations for input fields. Had to deprecate all pop calls as a hotfix |
/cc @tvolkert for the hotfix request. See also the duplicates of this issue. |
FYI the hotfix request is being evaluated. |
@tvolkert Hot fix is a must for us, at least. Keeping a fork of the flutter repo just to be able to apply the cherry pick creates a big maintenance issue. Moreover, our app uses several hero animations in the primary flows and now they simply don't work and the visual impact is a blocker for the release. We've started the migration process to the master branch but it will take time to finish plus the QA rounds. Since we also have app2app changes on master this will slow down us for a while if the hot fix is not approved. |
This fixes the issue described in flutter#40239: * Restore offstage and ticker mode after hero pop and the from hero is null (flutter#40306)
What is the status of this? Is there a workaround? This bug is affecting my new app which I hoped to get out on December 1. It seems like a common pattern that would affect many apps. |
Nevermind. I just did flutter upgrade and it looks like it has made it into stable. |
May i know which version you upgraded ? |
@limyeanfen I think it was fixed in |
It is not fixed in the latest version |
How to fix it? |
The bug you're seeing is likely a different bug, since this one has long been hotfixed on the stable branch (unless you're still on a version older than 1.9.1). Could you file a new issue using this link? |
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 |
After clicking the
![QQ20190911-173956@2x](https://user-images.githubusercontent.com/23414420/64686778-d04a1680-d4bb-11e9-87be-09e187921060.png)
![QQ20190911-174016@2x](https://user-images.githubusercontent.com/23414420/64686782-d213da00-d4bb-11e9-8f41-00e58de74cfc.png)
Hero
widget to jump to a list page, scroll down the list until theHero
widget of the corresponding tag leaves the screen and then return to the page. TheHero
widget of the previous page will be blank. This is a very serious problem, and now our online project has been plagued by this problem.Flutter version:
Reproduce code like this:
The text was updated successfully, but these errors were encountered: