-
-
Notifications
You must be signed in to change notification settings - Fork 432
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 TabView does not keep state on reorder or tab change #910
Comments
With some research, I found a workaround. Maybe it's good to incorporate to behavior of a TabView in this Lib. Based on post from Diego Velasquez, at https://medium.com/@diegoveloper/flutter-persistent-tab-bars-a26220d322bc,
just add the "AutomaticKeepAliveClientMixin" in the state of stateful widget and override the "wantKeepAlive" property to "true", boom! the magic it did. Thanks in advance, the post from Diego Velasquez and the fluent_ui by itself is the most incredible thing that I see in flutter in the last years. PS: I'm brazilian and my english maybe is not the best, forgive me by the prose, please. |
In case of usage of |
Describe the bug
When a Tab is clicked, the state of content in another tab in the same TabView resets to initial state
To Reproduce
Expected behavior
When a Tab is clicked, the state of content in previous edited tab still the same
The text was updated successfully, but these errors were encountered: