-
-
Notifications
You must be signed in to change notification settings - Fork 521
Description
Platforms
dart
Description
Hi
I'd like to request that ExtendedImageGesturePageView expose the allowImplicitScrolling property from GesturePageView.
Why
Currently, when using ExtendedImageGesturePageView I have a different loading/caching requirement which cause split second blank/loading state while swiping horizontally even when I use precacheImage.
Flutter's PageView solves this with allowImplicitScrolling = true, which keeps the previous and next page alive in the viewport. That completely removes the blank-page flash in my tests.
I saw that a preloadPagesCount option was introduced before, but later removed due to issues. I understand why, it introduced more complexity and maintenance overhead.
However, my request is simpler:
👉 Just expose allowImplicitScrolling so we can opt into Flutter’s built-in page caching behavior.
This keeps the library clean, uses Flutter’s intended API, and lets developers handle heavier preloading separately if needed.
Proposed API
ExtendedImageGesturePageView.builder(
allowImplicitScrolling: true, // just passed down to GesturePageView
...
)Benefits
- Removes “blank page” issue when swiping horizontally.
- Aligns with Flutter’s own PageView API.
- Minimal code change, no need to reintroduce preloadPagesCount.
Thanks for the great work on this library 🙏