paging_view library

Classes

Append<PageKey>
A LoadAction that signals a request to load data to be added at the end of the current list.
AppendLoadStateBuilder<PageKey, Value>
A widget that builds a custom UI at the end of the list (append) based on the DataSource's loading state.
CenterDataSource<PageKey, Value>
A DataSource specifically designed for CenterPagingList.
CenterPagingList<PageKey, Value>
A widget that displays a paginated list with a center anchor point.
DataSource<PageKey, Value>
The core of the paging_view library, acting as the bridge between a data source (like a network API or local database) and the UI.
Failure<PageKey, Value>
A LoadResult that indicates a failed data loading operation.
GroupedDataSource<PageKey, Parent, Value>
An extension of DataSource that automatically groups its items into sections based on a developer-defined condition.
GroupedPageData<Parent, Value>
Represents a single group in a sectioned list, composed of a parent and its associated child items.
GroupedPagingGrid<PageKey, Parent, Value>
A high-level widget that displays a scrollable, paginated grid with grouped items.
GroupedPagingList<PageKey, Parent, Value>
A high-level widget that displays a scrollable, paginated list with grouped items.
LoadAction<PageKey>
Represents the type of data loading action to be performed.
LoadResult<PageKey, Value>
Represents the result of a data loading operation initiated by a LoadAction.
None<PageKey, Value>
A LoadResult that indicates no data was loaded and no further action should be taken for this load cycle.
PageData<PageKey, Value>
A container for a single "page" of data loaded by a data source.
PagingGrid<PageKey, Value>
A high-level widget that displays a scrollable, paginated grid of items.
PagingList<PageKey, Value>
A high-level widget that displays a scrollable, paginated list of items.
Prepend<PageKey>
A LoadAction that signals a request to load data to be inserted at the beginning of the current list.
PrependLoadStateBuilder<PageKey, Value>
A widget that builds a custom UI at the start of the list (prepend) based on the DataSource's loading state.
Refresh<PageKey>
A LoadAction that signals a request to completely refresh the data.
SliverGroupedPagingGrid<PageKey, Parent, Value>
A sliver that displays a paginated, 2D array of items (a grid), grouped by a parent value.
SliverGroupedPagingList<PageKey, Parent, Value>
A sliver that displays a paginated, linear list of items, grouped by a parent value.
SliverPagingGrid<PageKey, Value>
A sliver that displays a paginated, 2D array of items (a grid).
SliverPagingList<PageKey, Value>
A sliver that displays a paginated, linear list of items.
Success<PageKey, Value>
A LoadResult that indicates a successful data loading operation.
ValueWithIndex<Value>
A data structure that wraps a value with its original index from a larger, flat list.

Enums

LoadErrorPolicy
Defines the policy when a data load fails.

Typedefs

ExceptionWidgetBuilder = Widget Function(BuildContext context, Object error, StackTrace? stackTrace)
Create widget with error Object.
GroupedTypedWidgetBuilder<Value> = Widget Function(BuildContext context, Value element, int globalIndex, int localIndex)
Create widget with grouped Value type, global index and local index.
TypedWidgetBuilder<Value> = Widget Function(BuildContext context, Value element, int index)
Create widget with Value type and index.