remote_data_provider 2.4.3
remote_data_provider: ^2.4.3 copied to clipboard
Help implementing providers easier with predefined abstract classes, special is for working with remote data.
Easy API Integration with Providers #
Help implementing providers easier with predefined abstract classes, special is for working with remote data like REST API.
Usages #
DataListProvider #
Good for handling a list of data items, such as list of posts, list of users,...
All you need to do is just extends DataListProvider and define onFetch method (to call your API or whatever to fetch your data)
Features:
- Supported infinity list with predefined
loadMoreand combine fetched data automatically - Fetch/refresh data with predefined
isLoadingstate - Add data with predefined
isAddingstate - Update data with predefined
isUpdatingstate - Delete data with predefined
isDeletingstate - Pagination with predefined
page,pageSize,lastPagestates - Sorting with predefined
sortOptionsstate - Searching with predefined
searchstate and integrateddebounce
BasicDataProvider #
Good for any kind of data that is not a list, such as user detail, post detail, login, register,...
Features:
- Fetch/refresh data with predefined
isLoadingstate - Update data with predefined
isUpdatingstate - Delete data with predefined
isDeletingstate - Support infinity list
See more in the example