You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: