-
Notifications
You must be signed in to change notification settings - Fork 3
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
The state of the main body is lost when navigating to the details page #2
Comments
Yeah, I agree it's not ideal. I too noticed the same issue but could not find a good workaround. I'm not sure the Flutter team has spent a lot of resources on figuring this out, which is why I opened the documentation request ticket that you found. Hopefully there's a reasonable solution to be had in the future. |
I hope so too. I'm going to spend some more time to try to figure something out. Hopefully I can come up with something |
Hi!
|
Hi,
I like your example, but I found one issue.
It can be observed if you scroll down in one of the lists, and then click on an item. The details page then opens, but scroll position in the list is lost.
One possible solution I had in mind was to reuse the same page, something like this:
That does retain the state of the list correctly, but it also means that there is no way to navigate back from the details page.
I also tried to figure something out with keys, but couldn't get that to work either.
The text was updated successfully, but these errors were encountered: