Closed rhyek closed 3 years ago
Figured it all out. Mostly looking at the release notes. Very nice library. Would be helpful if when releasing breaking changes you changed the docs (especially the example on the front page). Feel free to close.
The doc should be up to date.
Where did you find an issue in the doc?
There's also a migration guide https://riverpod.dev/docs/migration/0.13.0_to_0.14.0
I missed this as well, when attempting to move to Null Safety.
Can it be added to the README.md? It was upgrading the StateNotifierProvider
s
Thanks @rrousselGit!
Totally new to flutter, especially riverpod. Using hooks, with a state notifier provider declared like so:
I have a home widget declared like so:
drinkEvents
in that case is typed asdynamic
where I would expect it to beList<DrinkEvent>
. If I try to seeuseProvider
's result I can see this (nostate
property):Then, trying to access any of
DrinkEventNotifier
's methods (add
,removeLast
):pubspec.yaml: