0:00 / 0:00
#flutter#riverpod#riverpodgenerator
Flutter Riverpod 2 Tutorial for Beginners | Riverpod Generator
Rivaan Ranawat
87K subscribers • 14 videos on Hallway
- Recommended by 3 people: 3 in engineering communities.
- Presented by Rivaan Ranawat
- Linked in the descriptionrrousselGit/riverpod
- May be out of date. The tools, versions or practices it shows have likely moved on.
Beginner. No background in the topic needed.
111K views3 years ago3 recommendations
Mobile developmentSoftware designFlutter and React NativeSoftware architecture
Rivaan Ranawat teaches the fundamentals of Riverpod 2, covering various providers, state management, and automatic code generation.
In this tutorial, you're going to learn about ProviderScope, different types of Providers- Provider, StateProvider, StateNotifierProvider, ChangeNotifierProvider, FutureProvider, StreamProvider and modifiers like family and autoDispose; reading providers using Consumer, ConsumerWidget and ConsumerStatefulWidget; different types of Ref's - WidgetRef, ProviderRef, Ref and the methods on them like onDispose, onCancel, keepAlive and onResume; logging with ProviderObserver with the 3 override methods; drawbacks/limitations of using Riverpod, solutions to them and finally generating providers automatically with Riverpod Code Generator. 📌 Discord Server: discord.gg/Q8Rx8YWFVF Special Thanks: @aadhiarun2230 Timestamps: () Introduction () Why should we use Riverpod? () Getting Started with Riverpod () ProviderScope () Provider () Reading Providers using ConsumerWidget () Reading Providers using Consumer () ConsumerWidget vs Consumer () ref.watch vs ref.read () StatefulConsumerWidget () StateProvider () StateNotifier & StateNotifierProvider () Select Property () ChangeNotifier & ChangeNotifierProvider () FutureProvider () AsyncValue () ProviderRef () StreamProvider () Modifiers () .family () .autoDispose () Recap of all Providers () Ref () Useful Methods on ProviderRef () ProviderObserver () Limitations of Riverpod () Flutter Riverpod Snippets (VS Code Extension) () Riverpod Generator + Annotation () Limitations of Riverpod Generator (till now) () Conclusion Helpful Resources: riverpod.dev docs-v2.riverpod.dev codewithandrea.com/articles/flutter-state-management-riverpo… codewithandrea.com/articles/flutter-riverpod-generator/ codewithandrea.com/articles/flutter-riverpod-async-notifier/ github.com/rrousselGit/riverpod/issues Connect With Me Here: Instagram: instagram.com/optimalcoding GitHub: github.com/rivaanranawat Linkedin: linkedin.com/in/rivaan-ranawat Facebook: facebook.com/rivaan.ranawat/ Mail: namanrivaan@gmail.com Medium: namanrivaan.medium.com Twitter: twitter.com/RanawatRivaanWhy it's here
3 people recommend thisWhat people say. Highly recommended for making Riverpod state management easy to understand for beginners and explaining code generation.
u/Engg-Learn005in r/FlutterDev • Recommends
On “Am I super dumb or is Riverpod SO complicated?”
I was having same feeling as it is difficult. I tried various tutorials but i didn't understood it properly.
But then, two days ago, I came across a video by **Rivaan Ranawat** on YouTube [video , which explained Riverpod very well.
Thanks to this video, I finally understood Riverpod, and I now feel confident about using it in my project.
I will suggest you that please see this video [video and then decide Riverpod is simple or complicated.
u/Pika-Chew5879in r/FlutterDev • Recommends
On “New to Flutter, built an app, confused about advanced stuff – help!”
…y with `riverpod_annotations` and `riverpod_generator` doing most of the boilerplate for you.
Also, don't overlook app architecture patterns. I highly recommend learning one production-level pattern. **MVVM** is my favorite and is also the officially recommended one by the Flutter team.
# Some resources that helped me:
* Dart & Flutter Course: [video
* MVVM Architecture: [video
* Riverpod: [video
* Clean Architecture: [video
* BLoC: [video
* Flutter Cookbook: https://docs.flutter.dev/cookbook
* Flutter Widget Catalog: https://docs.flutter.dev/ui/widgets
Hope this helps — and best of luck on your journey!…