Home > Software design >  flutter_riverpod 1.0.0 prevents app from running in Chrome in debug mode
flutter_riverpod 1.0.0 prevents app from running in Chrome in debug mode

Time:11-11

Hi ran into this issue when I upgraded to flutter_riverpod 1.0.0 then saw this issue raised in the riverpod repo

flutter_riverpod 1.0.0 ~Issue

Then I saw that the owner of the repo closed the discussion about this me clueless where to go next...

Will appreciate any help that I can get!!

CodePudding user response:

The issue is in dart sdk, not riverpod. You should track (and upvote so it hopefully gets prioritized) the linked dart sdk ticket for this, which should resolve it when it's fixed.

CodePudding user response:

try to see if you've done all the required migrations possible like when using consumerWidget the build method doesn't take ProviderBased object but now it's a WidgetRef you can now use the instance of WidgetRef and call read on it instead of context.read() to read the provider and use an instance of WidgetRef and call watch to see the changes in your provider then run flutter clean after that run flutter pub get see this link for more documentation about riverpod

  • Related