tomgilder / routemaster

Easy-to-use Navigator 2.0 router for web, mobile and desktop. URL-based routing, simple navigation of tabs and nested routes.
https://pub.dev/packages/routemaster
MIT License
328 stars 61 forks source link

There is no way to preserve the page state in the Indexed Page and PageStackNavigator. #307

Open CodeFoxLk opened 2 years ago

CodeFoxLk commented 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

darkstarx commented 10 months ago

Easy. Just use AutomaticKeepAliveClientMixin for your page. Place nested pages into the PageView with physics: const NeverScrollableScrollPhysics().