Skip to content
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

How to keep alive when there are multiple pages? #2

Closed
BadReese opened this issue Jul 12, 2021 · 4 comments
Closed

How to keep alive when there are multiple pages? #2

BadReese opened this issue Jul 12, 2021 · 4 comments

Comments

@BadReese
Copy link

as title said.

@TheAnkurPanchani
Copy link
Owner

You should try AutomaticKeepAliveClientMixin. A reference to know how it works: https://medium.com/manabie/flutter-simple-cheatsheet-4370a68f98b3

@rasitayaz
Copy link

rasitayaz commented Dec 15, 2021

You should try AutomaticKeepAliveClientMixin. A reference to know how it works: https://medium.com/manabie/flutter-simple-cheatsheet-4370a68f98b3

Just tried this but it does not seem to work. Pages are being reinitialized every time.

Edit: My bad, it works when I use AutomaticKeepAliveClientMixin with the widgets inside the Swiper, not the outer page.

@whichname
Copy link

But if loop is true, AutomaticKeepAliveClientMixin will be not work. So how can i do ?

@TheAnkurPanchani
Copy link
Owner

@whichname : Please open another issue with some sample code to replicate.

Repository owner locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants