provider 2.0.0-dev
provider: ^2.0.0-dev copied to clipboard
An helper to easily exposes a value using InheritedWidget without having to write one.
2.0.0 #
- merged
ProviderandStatefulProvider - added a "builder" constructor to
ValueListenableProvider - normalized providers constructors such that the default constructor is a "builder", and offer a
valuenamed constructor.
1.6.1 #
Provider.of<T>now crashes with aProviderNotFoundExceptionwhen noProvider<T>are found in the ancestors of the context used.
1.6.0 #
- new:
ChangeNotifierProvider, similar to scoped_model that exposesChangeNotifersubclass and rebuilds dependents only whennotifyListenersis called. - new:
ValueListenableProvider, a provider that rebuilds whenever the value passed to aValueNotifierchange.
1.5.0 #
- new: Add
Consumerwith up to 6 parameters. - new:
MultiProvider, a provider that makes a tree of provider more readable - new:
StreamProvider, a stream that exposes to its descendants the current value of aStream.
1.4.0 #
- Reintroduced
StatefulProviderwith a modified prototype. The second argument ofvalueBuilderanddidChangeDependencieshave been removed. AndvalueBuilderis now called only once for the whole life-cycle ofStatefulProvider.
1.3.0 #
- Added
Consumer, useful when we need to both expose and consume a value simultaneously.
1.2.0 #
- Added:
HookProvider, aProviderthat creates its value from aHook. - Deprecated
StatefulProvider. Either make aStatefulWidgetor useHookProvider. - Integrated the widget inspector, so that
Providerwidget shows the current value.
1.1.1 #
- add
didChangeDependenciescallback to allow updating the value based on anInheritedWidget - add
updateShouldNotifymethod to bothProviderandStatefulProvider
1.1.0 #
onDisposehas been added toStatefulProviderBuildContextis now passed tovalueBuildercallback



