⚡ PerformanceListView
Stop reinventing the wheel. PerformanceListView is a production-ready, drop-in replacement for Flutter's standard ListView/GridView. It eliminates boilerplate by handling Pagination, Pull-to-Refresh, Error States, and Memory-Optimized Caching right out of the box.
🚀 Why PerformanceListView?
Standard Flutter lists become complex quickly when you add infinite scrolling and remote images. PerformanceListView solves:
- Jank-Free Scrolling: Uses
RepaintBoundaryto isolate item paints. - Memory Bloat:
PerformanceImageautomatically resizes images to their display size in memory. - Boilerplate: No more manual
ScrollControllerlisteners for pagination. - Robust UX: Built-in "Retry" buttons for errors and "Empty" states for no data.
✨ Key Features
- Auto-Pagination: Simple
onEndReachedcallback. - Grid Support: Easy switch to
PerformanceListView.grid. - Sliver Ready: Exported as
SliverPerformanceListViewfor complexCustomScrollViewlayouts. - Smart Caching: Built-in wrapper for
CachedNetworkImagewith optimized memory usage. - Refreshable: Seamless integration with
RefreshIndicator.
📦 Installation
Add this to your pubspec.yaml:
dependencies:
performance_list_view: ^0.0.3