Currently, when using PageView in FlutterFlow (e.g., for swipeable feeds or infinite pagination), the internal state of each page—like scroll position or loaded data—is lost when navigating away and returning. Unlike TabBar, which offers a “Keep tab state alive” option, PageView lacks an equivalent functionality.
Use Case Example: In a social feed built with PageView and infinite scrolling, a user swipes through many posts, taps to view a profile, then returns expecting to see the same feed position. Instead, the PageView resets—losing scroll offset and content state.
Proposed Solution: Introduce a toggle in PageView settings, such as “Keep Page State Alive”, that wraps pages in either AutomaticKeepAliveClientMixin or uses PageStorageKey, preserving state across navigation events—just like TabBar uses KeepAliveWidgetWrapper.
Benefits:
Improved UX: Users don’t lose their scroll position or loaded content.
Less complexity: Reduces need for manual workarounds (e.g., saving indices or using custom state logic).
Please FlutterFlow Devs 🙏