I am new to Riverpod and trying to implement pull to refresh with Riverpod in my Flutter app and can't seem to find any good tutorial online. Has anyone implemented pull-to-refresh in their Flutter app while using Riverpod. I have looked for tutorials everywhere, but most I found was simple network request on app load. Thanks in advance!
using these dependencies for riverpod and network requests. flutter_riverpod: ^0.12.1 dio: ^3.0.10
You can use context.refresh(yourProvider)
in your refresh action. Works great.
In Riverpod 1.0.0 and above, you can use ref.refresh(yourProvider)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With