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.
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.
- expandable_page_view
A PageView widget that automatically adjusts its height to the currently displayed page.
88Compare - flutter_pagewise
Widgets for lazy-loading lists and grids with pagination support.
50Compare - page_view_indicators
Customizable page indicators for PageViews including circles, arrows, progress, and steps.
48Compare - before_after
A Flutter widget that makes it easier to display the difference between two images using a slider.
50Compare
Works with
Packages commonly used together with preload_page_view: ones it builds on, ones built on it, and its own family.