Preserving state between tab view pages. Long story short, use a PageStorageKey() for your ListView or one of it’s ancestors, the Container widget in your case:
1 2 3 4 | child: new Container( key: new PageStorageKey(page.country), child: new Newsfeed(country: page.country), ), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.