shrink_sidemenu_flutter
shrink_sidemenu_flutter copied to clipboard
the index of the ListView will go back to index 0 when I open SideMenu
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?