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

the index of the ListView will go back to index 0 when I open SideMenu #19

Open
davidCcD opened this issue Mar 24, 2023 · 0 comments
Open

Comments

@davidCcD
Copy link

davidCcD commented Mar 24, 2023

Hi, friends! My main page body is a SmartRefresher ( pull_to_refresh: ^2.0.0 ) with a child of ListView. When I use a SideMenu, the main page successfully changed to a shrinked page.

But, all contents in the ListView will disappear when I open SideMenu, and will appear again when I close SideMenu - and the index of the ListView will go back to index 0 (actually, I scrolled it to index 10 or more than 0).

And more, the console info shows error:
Don't use one refreshController to multiple SmartRefresher,It will cause some unexpected bugs mostly in TabBarView
'package:pull_to_refresh/src/smart_refresher.dart':
Failed assertion: line 608 pos 12: '_refresherState == null'

Then, I remove the SmartRefresher, leave the ListView only in the body. The result is: the list content will be remaining ( fixed the problem of content disappear). But, the index of the ListView will go back to index 0, still not fixed this problem.

So, friends, how can I fixed this?

@davidCcD davidCcD changed the title all contents in the ListView will disappear when I open SideMenu the index of the ListView will go back to index 0 when I open SideMenu Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant