-
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
Use TabBarView with AutomaticKeepAliveClientMixin and with 4 or more pages will cause error #16502
Comments
NOT fixed until now (Channel master, v0.3.1-pre.35) |
The same problem. |
cc @goderbauer This way be related to your recent change? |
I just checked, the crash also happens before my change to keep alive (#16445). This is probably an unrelated issue. I can take a closer look once I have some free cycles... |
Is there any solution? |
@Hixie The same problem happened to me. |
The same problem,me too. |
Duplicate of #11895. |
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 |
What I Try to do
I use the AutomaticKeepAliveClientMixin in my widget , because I want to build a TabView with 4 pages and they can save self's state after scroll Automaticlly.
And I follow the issue #16445 , then switch my flutter channel to master , and yes , AutomaticKeepAlive works now , but I got a crush when I try to switch page 4 from page 1 directly after app launched.
Steps to Reproduce
Here is my demo code :
https://gist.github.com/debuggerx01/69668ff96926d4fddf7a51167045be5b
And I record a gif to show this problem:
Logs
The text was updated successfully, but these errors were encountered: