future_widget 0.3.2
future_widget: ^0.3.2 copied to clipboard
FutureWidget and FutureWidgetWrapper — a pragmatic and clear alternative to FutureBuilder/StreamBuilder
0.3.2 #
- Make
autoDisposeOnError
always reject errors while noFutureWidget
is watching.- Previously errors were kept in the background and disposed only in
FutureWidget
'sinitState
.
- Previously errors were kept in the background and disposed only in
0.3.1 #
- Fix bug "Errors can be shown with autoDisposeOnError setting set to true"
0.3.0 #
Huge rewrite:
- Move most logic from widget to value notifier (
FutureGen
), thus allow seamless integration among multipleFutureWidget
instances and a singleFutureGen
. - Rename many variables and classes.
- Add proper laziness support at
FutureGen
level (ON by default). - Invoke refresh futures lazily and, in case of
nonPriority
refreshes, only if preconditions are met. - Add auto dispose on error support (ON by default).
- Among others.
This update was a bit rushed and lacks:
- Up-to-date documentation
- Up-to-date docstring
0.2.0 #
- Lift
isRefreshing
state up toFutureWidgetWrapper
. - Deprecate
setFutureProvider
,futureProviderFallbackValue
,tmpFutureProviderFallbackValue
- Rename many variables and classes.
- Update docs.
0.1.0 #
- Added up-to-date documentation.
- Renamed many typedefs, classes and variable.
- Added
disposeState
option torefresh
callback.- Removed
onLoading
argument passed toonData
andonError
callbacks.
- Removed
- Other things.
0.0.1 #
- Temporarily removed outdated documentation.
- Rewritten
FutureWidget
from packagedeclarative_async_widget
. - Changed callback names and constructor names.
- Added
isRefreshing
support. (which can replaceStreamWidget
/StreamBuilder
in most situations). - Added
FutureWidgetWrapper
. - Other things.