provider 1.4.0
provider: ^1.4.0 copied to clipboard
An helper to easily exposes a value using InheritedWidget without having to write one.
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



