hexsis_infinity_scroll_bloc library

Classes

DefaultEmptyWidget
Default centered placeholder shown when no items are available.
DefaultErrorWidget
Default error presentation with a retry button.
DefaultLoadingIndicator
Default centered indicator used while the initial page loads.
DefaultLoadingMoreIndicator
Default compact indicator appended while another page loads.
InfiniteScrollBlocGridView<T, C extends InfiniteScrollCubit<T>>
Renders an infinite grid from an ancestor InfiniteScrollCubit.
InfiniteScrollBlocListView<T, C extends InfiniteScrollCubit<T>>
Renders an infinite list from an ancestor InfiniteScrollCubit.
InfiniteScrollConfig
Configures pagination, scroll thresholds, refresh, and load timing.
InfiniteScrollController<T>
Coordinates page fetching and exposes observable infinite-scroll state.
InfiniteScrollCubit<T>
Base cubit for loading, refreshing, and appending paginated items.
InfiniteScrollGridView<T>
A grid that fetches and appends pages as the user approaches its end.
InfiniteScrollListView<T>
A list that fetches and appends pages as the user approaches its end.
InfiniteScrollSliverGrid<T>
An infinite-loading sliver grid for use inside a custom scroll view.
InfiniteScrollSliverList<T>
An infinite-loading sliver list for use inside a custom scroll view.
InfiniteScrollState<T>
Immutable state emitted by InfiniteScrollCubit.
PaginatedData<T>
The items and pagination metadata returned by a FullFetcher.
ThresholdCalculator
Calculates the scroll position that should trigger the next page load.

Typedefs

ErrorBuilder = Widget Function(BuildContext context, Object error, VoidCallback retry)
Builds an error presentation and receives a callback that retries loading.
FullFetcher<T> = Future<PaginatedData<T>> Function(int page)
Fetches one page with complete pagination metadata.
ItemBuilder<T> = Widget Function(BuildContext context, T item, int index)
Builds a widget for item at index.
SimpleFetcher<T> = Future<List<T>> Function(int page)
Fetches one page of items.
TupleFetcher<T> = Future<({bool hasMore, List<T> items})> Function(int page)
Fetches one page together with an explicit indication of more data.