Skip to content
pubscout

preload_page_view

0.2.0, released 4 years ago by an unverified publisher

A PageView widget that supports preloading pages before they are scrolled into view.

WASM-ready
$ flutter pub add preload_page_view
Source repository

What it does

PreloadPageView allows developers to preload a specified number of pages before and after the current page. It provides a similar API to the official Flutter PageView, including builder methods and a dedicated controller.

AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to preload images or web requests before the user scrolls to adjacent pages in a PageView.
  • You want a drop-in alternative to Flutter's standard PageView with preloading capabilities.

Skip it when

  • You do not need to preload content or manage off-screen page lifecycles differently than standard Flutter widgets.
  • You require complex non-standard scroll physics not supported by the underlying implementation.

Strengths

  • Drop-in replacement for the standard PageView widget.
  • Supports setting a custom number of preloaded pages using preloadPagesCount.

Weaknesses

  • Relies on a custom implementation separate from the official Flutter SDK PageView.
  • Documentation is minimal and lacks advanced configuration examples.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

return new PreloadPageView.builder(
  itemCount: ...,
  itemBuilder: ...,
  onPageChanged: (int position) {},
  preloadPagesCount: 3,
  controller: PreloadPageController(),
);

Alternatives

Packages that do the same job and could replace preload_page_view.

Works with

Packages commonly used together with preload_page_view: ones it builds on, ones built on it, and its own family.