paging_view
2.10.1, released 2 months ago by koji-1009.com
Flutter widgets for infinite‑scroll, paginated lists, grids and slivers with data‑source control.
What it does
Provides PagingList, PagingGrid and their sliver equivalents that load data page‑by‑page using a DataSource. Supports refresh, append, prepend and real‑time item updates.
AI-written summary of version 2.10.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need infinite scrolling or paginated UI without writing load‑logic in the widget tree
- You want fine‑grained control over loading states and item updates
Skip it when
- You only need a simple ListView without pagination
- You require a backend‑specific client (e.g., Firebase paging)
Strengths
- Clear separation of data loading via DataSource
- Supports both list and grid layouts, including slivers
- Built‑in grouped lists with sticky headers
- Customizable loading/error/empty widgets
Weaknesses
- Adds extra abstraction layer that may be overkill for tiny lists
- No built‑in network client – you must implement data fetching yourself
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
class Demo extends StatefulWidget{const Demo({super.key});@override State<Demo> createState()=>_DemoState();}
class _DemoState extends State<Demo>{late final ExampleDataSource _src;@override void initState(){super.initState();_src=ExampleDataSource();}
@override void dispose(){_src.dispose();super.dispose();}
@override Widget build(BuildContext context){return RefreshIndicator(onRefresh:()=>_src.refresh(),child:PagingList(dataSource:_src,initialLoadingWidget:Center(child:CircularProgressIndicator())));}}Alternatives
Packages that do the same job and could replace paging_view.
- alphabet_list_view
A ListView with sticky headers and an iOS-like clickable sidebar.
76Compare - indexed_list_view
Infinite ListView that lets you programmatically jump instantly to any item by index.
82Compare - country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - infinite_grouped_list
Dynamic scrolling list that efficiently groups items and loads more data as the user scrolls.
79Compare