Open CodeFoxLk opened 2 years ago
how to preserve page states when using Indexed Page and PageStackNavigator. like the scrolled position of a list view. it is possible with the Tabview. but not with the Indexed Page and PageStackNavigator
Easy. Just use AutomaticKeepAliveClientMixin for your page. Place nested pages into the PageView with physics: const NeverScrollableScrollPhysics().
AutomaticKeepAliveClientMixin
PageView
physics: const NeverScrollableScrollPhysics()
how to preserve page states when using Indexed Page and PageStackNavigator. like the scrolled position of a list view. it is possible with the Tabview. but not with the Indexed Page and PageStackNavigator