Flutter Riverpod 2 Tutorial for Beginners | Riverpod Generator
Rivaan Ranawat Rivaan Ranawat
49.1K subscribers
68,991 views
0

 Published On Nov 13, 2022

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  
Special Thanks: @aadhiarun2230

Timestamps:
(00:00:00) Introduction
(00:00:16) Why should we use Riverpod?
(00:00:52) Getting Started with Riverpod
(00:01:21) ProviderScope
(00:03:07) Provider
(00:06:55) Reading Providers using ConsumerWidget
(00:09:17) Reading Providers using Consumer
(00:10:46) ConsumerWidget vs Consumer
(00:13:41) ref.watch vs ref.read
(00:15:58) StatefulConsumerWidget
(00:18:20) StateProvider
(00:25:25) StateNotifier & StateNotifierProvider
(00:43:41) Select Property
(00:47:47) ChangeNotifier & ChangeNotifierProvider
(00:53:41) FutureProvider
(00:59:23) AsyncValue
(01:07:28) ProviderRef
(01:13:52) StreamProvider
(01:18:50) Modifiers
(01:19:15) .family
(01:26:11) .autoDispose
(01:29:42) Recap of all Providers
(01:31:54) Ref
(01:33:54) Useful Methods on ProviderRef
(01:37:18) ProviderObserver
(01:42:24) Limitations of Riverpod
(01:44:07) Flutter Riverpod Snippets (VS Code Extension)
(01:45:25) Riverpod Generator + Annotation
(01:52:55) Limitations of Riverpod Generator (till now)
(01:54:22) Conclusion

Helpful Resources:
https://riverpod.dev
https://docs-v2.riverpod.dev
https://codewithandrea.com/articles/f...
https://codewithandrea.com/articles/f...
https://codewithandrea.com/articles/f...
https://github.com/rrousselGit/riverp...

Connect With Me Here:
Instagram:   / optimalcoding  
GitHub: https://github.com/rivaanranawat
Linkedin:   / rivaan-ranawat  
Facebook:   / rivaan.ranawat  
Mail: [email protected]
Medium:   / namanrivaan  
Twitter:   / ranawatrivaan  

show more

Share/Embed