enhanced_paginated_view
3.0.0, released 4 months ago by mustafaix.live
A customizable Flutter widget for paginated lists, grids, and slivers with pull-to-refresh.
What it does
Provides a widget that handles pagination, infinite scrolling, pull-to-refresh, item deduplication, and loading/error/empty states for lists, grids, and slivers. It separates data handling via a delegate from presentation configuration via an options class, while letting developers retain control over state management.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need paginated lists or grids with infinite scrolling and pull-to-refresh.
- You want built-in handling for empty, error, and loading states without writing boilerplate scroll listeners.
Skip it when
- You are not using pagination and simply need a standard, small static list or grid.
- You prefer an entirely custom low-level scroll listener implementation.
Strengths
- Supports box and sliver layouts for ListView and GridView.
- Built-in support for pull-to-refresh, deduplication, and tunable load-more thresholds.
- State management agnostic (works with BLoC, Riverpod, Provider, or setState).
Weaknesses
- Requires adherence to its specific delegate and status lifecycle contract.
- Box-based views render eagerly inside a single scrollable unless using the sliver-based variant.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
EnhancedPaginatedView(
onLoadMore: (page) {},
hasReachedMax: state.hasReachedMax,
delegate: EnhancedDelegate(
listOfData: yourDataList,
status: EnhancedStatus.loaded,
),
builder: (items, physics, reverse, shrinkWrap) {
return ListView.builder(
itemCount: items.length,
physics: physics,
shrinkWrap: shrinkWrap,
reverse: reverse,
itemBuilder: (context, index) {
return ListTile(title: Text(items[index].toString()));
},
);
},
)Alternatives
Packages that do the same job and could replace enhanced_paginated_view.
- easy_refresh
A Flutter widget providing pull-down refresh and pull-up load for all scrollable widgets.
80Compare - flutter_slidable
Flutter implementation of slidable list item with directional slide actions and dismissal.
97Compare - toggle_list
An easy-to-use and highly customizable expandable list widget for your Flutter application.
48Compare - flutter_joystick
A virtual joystick widget for Flutter applications with high customization.
81Compare