paginated_items_builder library
Classes
- LoaderShimmer
- What if you have multiple PaginatedItemsBuilder widgets in a single view, then every builder has it's own loader, and you want a pull down refresh handler on the main page, and at the same time don't want every widget to render it's own loader, instead, have a common global loader for the entire page.
-
PaginatedItemsBuilder<
T> - Handles rendering the items on the screen. Can have PaginationItemsStateHandler as parent if state is not handled externally.
- PaginatedItemsBuilderConfig
- The config for PaginatedItemsBuilder.
-
PaginatedItemsResponse<
T> - The response object that carries the list of items and handles pagination internally. The paginationKey is optional and can be of any type. If not passed, it is assumed that the API does not support pagination.
-
PaginationItemsStateHandler<
T> - Do not have a controller for a list of items? Or do not want to create one just because of one time use, use PaginationItemsStateHandler, it handles the state internally and wraps above a PaginatedItemsBuilder.
- Shimmer
- A widget renders shimmer effect over child widget tree.
- ShimmerConfig
- ShimmerConfig class to customize the loading shimmer colors, duration etc.
Enums
- ItemsDisplayType
- enum used to check how the items are to be rendered on the screen. Whether in a list view or a grid view.
- ItemsFetchScope
- Defines the scope from which PaginatedItemsBuilder.fetchPageData in PaginatedItemsBuilder was called.
- ShimmerDirection
- An enum defines all supported directions of shimmer effect