Skip to content

Upgrading flutter_riverpod 0.6 to 0.7

Breaking0.6.1 → 0.7.2Breaking2New2Fixed3

BreakingUpgrade verdict

2 breaking changes.

  • A provider that is not auto-disposed can no longer watch a provider that is auto-disposed.
  • If you use Consumer, you now pass a builder function that receives the context, watch, and child instead of a single function.
2 items need code or config changes
Breaking2
ref.watch on non .autoDispose providers can no longer read .autoDispose providers.
ref.watch
Consumer is modified to match other builders like ValueListenableBuilder, now taking a builder callback with a child parameter.
ConsumerValueListenableBuilder