future_widget 0.3.2 copy "future_widget: ^0.3.2" to clipboard
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 no FutureWidget is watching.
    • Previously errors were kept in the background and disposed only in FutureWidget's initState.

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 multiple FutureWidget instances and a single FutureGen.
  • 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 to FutureWidgetWrapper.
  • 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 to refresh callback.
    • Removed onLoading argument passed to onData and onError callbacks.
  • Other things.

0.0.1 #

  • Temporarily removed outdated documentation.
  • Rewritten FutureWidget from package declarative_async_widget.
  • Changed callback names and constructor names.
  • Added isRefreshing support. (which can replace StreamWidget/StreamBuilder in most situations).
  • Added FutureWidgetWrapper.
  • Other things.
0
likes
150
pub points
15%
popularity

Publisher

unverified uploader

FutureWidget and FutureWidgetWrapper — a pragmatic and clear alternative to FutureBuilder/StreamBuilder

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, synchronized

More

Packages that depend on future_widget