fetching_state 1.1.0 fetching_state: ^1.1.0 copied to clipboard
A small package that helps easily to work with UI changes base on the state of fetching remote data
1.1.0 [BREAKING CHANGE] #
- No longer require [E] Error type. By default error type to [Object], which later can be cast to your own sake.
- Added
loadingMore
state where user could you when fetching more item into current data. Useful when use with ListView, ect... onDone
is now(T? data, bool isLoadingMore)
which provide current [data] and a boolean value indicate if the [status] is [loadingMore] add the same time. This help user can still display current list and the loading indicator if fetching more data is happening.
1.0.1 #
- Add optional init parameters for
init
method
1.0.0 #
- Remove named parameters
- Fix typos
0.0.8 #
whenOrElse
andwhen
return WidgetsmapOrElse
andmap
return whatever type you want.
0.0.7 #
- change to make return type more flexible.
- return Widget is not the case anymore.
0.0.6 #
- changing [
isDone
,isInit
,isLoading
,isError
] to getters
0.0.5 #
- adding bool shortcut methods [
isDone
,isInit
,isLoading
,isError
]
0.0.4 #
0.0.3 #
- update documents
0.0.2 #
- update license
0.0.1 #
- First publish