body_builder 2.0.0
body_builder: ^2.0.0 copied to clipboard
BodyBuilder is a widget that manage the loading of your data
2.0.0 #
- Breaking Changes !
- riverpod > Better support for riverpod. Impl
ref.asBodyProvider. - riverpod > New riverpod states to make things easier:
createSimpleStateProvider, createFamilySimpleStateProvider, createPaginatedStateProvider, createPaginatedDataStateProvider, createFamilyPaginatedStateProvider, createAutoDisposeSimpleStateProvider, createAutoDisposeFamilySimpleStateProvider, createAutoDisposePaginatedStateProvider, createAutoDisposeFamilyPaginatedStateProvider. - riverpod > The state is updated within the body provider. No need to update it on your side anymore.
- BodyProvider > Concurrent loading are now handled correctly to avoid calling multiple times the data loader at the same time. Works only if you reuse the same instance of a body provider.
- ChildWrapper > Search and scroll controller are now passed as parameter if you wish to add your own pull to refresh or more.
- Pull To Refresh > Removed, use child wrapper instead.
1.1.3 #
- riverpod > Add missing state notify to each states data change
1.1.2 #
- riverpod > Add support for auto dispose state
1.1.1 #
- Add new parameter
refresherHeaderto allow pull to refresh customization
1.1.0 #
- Bump dependencies versions
1.0.18 #
- Add missing setState in
BodyBuilder.
1.0.17 #
- Expose
stateinBodyBuilderState
1.0.16 #
LoadMoremay now trigger loadMoreIfNeeded indidChangeDependencies
1.0.15 #
- Add
CachedBodyProviderwhich can be used along with cache_annotations
1.0.14 #
- Fix
BodyState.hasDatawhich was not working properly when data was null.
1.0.13 #
StateProvider.itemsis now deprecated. UseStateProvider.datainsteadSimpleStateProvider.onFetchis now deprecated. UseSimpleStateProvider.oninsteadRelatedStateProvider.onFetchis now deprecated. UseRelatedStateProvider.oninsteadPaginatedState.onFetchis now deprecated. UsePaginatedState.oninstead
1.0.12 #
- Add a new parameter
MergeDataStrategyto allow different strategies when merging all providers data
1.0.11 #
- Bump
rxdartandcollectionversions
1.0.10 #
- Fix
setState() called after dispose()in BodyBuilderState
1.0.9 #
onBeforeRefreshis now a VoidCallback? instead of a ValueChanged<T?>?onRefreshis now a VoidCallback? instead of a ValueChanged<T?>?- Fix method
hasDatainBodyStatewhen there are more than one provider - Fix method
clearinRelatedPaginatedStatesandStateProvider.notifyListenersis now called after the clear operation
1.0.8 #
- Fix issue with nbHits not being updated when no data are available
1.0.6 #
PaginatedBaseandPaginatedStatenow supportnbHitsto help keeping track of a counter.
1.0.5 #
- In
BodyProvider#resolvein order to avoid being in a situation with no data,allowDatais now set to true (by force) if the state has no data.
1.0.4 #
- Add method
normalizeQuery(String? query)toPaginatedStatefor more flexible query normalization - Add static getter
Iterable<String> get queriestoPaginatedState - Add method
bool has(T item)toDataState
1.0.3 #
- Add missing calls to
notifyListeners()inRelatedStateProvider
1.0.2 #
- The method
BodyBuilder#_hasMore()is now public:BodyBuilder#hasMore() - Add parameter
useButton,loadMoreBuilderandloadMoreLabelto the widgetLoadMoreto allow more customization of the load more button.
1.0.1 #
- Updated the
README.mdto fix the broken links
1.0.0 #
- Initial version of the body builder