Flutter Riverpod EASY Tutorial
Vložit
- čas přidán 27. 07. 2024
- Dive into the world of efficient state management with Flutter Riverpod! In this video, we'll explore the power and simplicity of Riverpod, a robust state management library for Flutter that makes managing your app's state a breeze. Whether you're a beginner looking to enhance your understanding of state management in Flutter or an experienced developer seeking a more efficient way to handle state, this video is for you! Happy coding with Flutter Riverpod!
OVERVIEW
0:00 Boring talk
0:32 Set up Riverpod
1:00 Easy Level
4:51 Hard Level (With a model)
8:04 Practical Exercises (In the description)
🔥 PRACTICAL EXERCISES 🔥
• Riverpod Practical Exe...
PROVIDER
Check out our Flutter Provider tutorial here: • Flutter Provider EASY ...
📖 CHEATSHEET 📖
** Riverpod set up **
ProviderScope
-----
** Easy level **
StateProvider
ConsumerWidget
ref.watch(riverpod)
ref.read(riverpod.notifier).state
-----
** Hard level (With a model) **
ChangeNotifierProvider
ChangeNotifier
notifyListeners
ConsumerWidget
ref.watch(riverpod).name
ref.read(riverpod).changeName(newName: newValue)
-----
** PS **
Watch = Listen to changes
Read = Don't listen to changes (Edit the value)
RECOMMENDED VIDEOS
Playlist of more than 200 Flutter tips: • 35 Flutter Tips That W...
Learn Flutter in 1 hour: • Flutter Tutorial For B...
SOCIAL MEDIA:
Instagram : fluttermapp
Twitter : FlutterMapp
Website: www.fluttermapp.com
Discord Invite: / discord
WEBSITE
fluttermapp.com
#Riverpod
#FlutterMapp
#Flutter
very straight forward , easy to understand and To the point
This was insightful and very easy to understand, thanks.
Letsgo!
Great Explanation Thank you.
Hi, thanks for the upload 🤩 but I guess we could do a lot more with Riverpod. If you refer to ChangeNotifierProvider documentation, it says:
Using ChangeNotifierProvider is discouraged by Riverpod and exists primarily for:
- an easy transition from package:provider when using its ChangeNotifierProvider
- supporting mutable state, even though immutable state is preferred
Also maybe you can cover provider generation too using @riverpod annotation.
On top of it all, can we have another updated video/course on Clean Architecture with actual CRUD operations (with Sqflite and/or Firestore) and Riverpod. I guess it's a need with 99% of all CZcams tutorials cover bloc 😇 This is a humble request from a huge fan of your content.
Thanks for the video correction! That's how we learn and improve for the future! Keep it up 🔥
I liked your way simplifying riverpod.
Their are many providers in riverpod but you used the one that even riverpod said not to use
Please share with us what is wrong, what should be done instead, and why. I'm willing to make it right if it's not. 👍
The Riverpod docs have two migration guides, one for each StateNotifier (rather new that it is discouraged)and ChangeNotifier (discouraged since a long time, only meant for easy migration from provider). Instead of StateNotifier and ChangeNotifier, Notifier or AsyncNotifier should be used.
@@FlutterMapp Using ChangeNotifierProvider is discouraged by Riverpod and exists primarily for:
-an easy transition from provider
-supporting mutable state, even though immutable state is preferred
CZcamsrs copy/remake from other videos, end up using legacy codes.
Thank you for this tutorial, it helped me so much understanding riverpod!
Update: I've switched to Provider. It is easier to think in Widgets than it is to think in listening or reading or whatever
Beautifully explained. I was able to understand it perfectly and made the necessary changes to my app. Thank You
Was so helpful.
Broooooooo!!! Thank you a lot. Finally understand riverpod
great video, thanks. Question: in a DDD architecture the riverpod_model.dart file will go into the data or domain folder ?
Epic tutorial by all means
You are a saint! ❤
Brilliant and clear guide to start replacing provider package for example, thanks. Still, state and changenotifier should not be used, instead it is better to use code generation to implement more complex and useful types of providers as the documentation suggests.
read the title of the video, code generation is not easy beginners staff
@@oswaldoolea2889 This tutorial is valid as reference and fast migration, but on new applications you should use code generation, just pointing what the actual documentation says.
Nice tutorial.
But doesn't the Riverpod tell to avoid ChangeNotifier?
Please make a video on flutter sqflite CRUD operation
Oh dear, You explain it very well ! Can you please make it in Bloc?
Please make a video about flutter hooks
very good and clear, i hope your english is better
Next bloc and cubit😄
👏👏👏👏
Great explanation. Made it simple for me.
Glad you liked it!
Could you do a similar video with code generation? I’ve mostly used riverpod like you were showing here, but since the code gen version is the most likely to stay long term it would be nice to see more examples using it. Thanks!
In the video description, you have 2 practical exercises. Is this what you meant?
Okay, after reading further comments, I think you were referring to the riverpod_generator dependency, right?
@@FlutterMapp I’m referring to using build_runner to creste annotated providers, but probably this depends on this package you mentioned, I’d check the official docks just to be sure.
I think it's riverpod more complicated than cubit bloc,
Very good video... can you made same video with most engaged riverpod's providers, please? l
Humm, can you elaborate the request please, I'm not sure to understand? Thank you
@@FlutterMapp
Can you create a video, or serie... to explain how to use (and why) and DIFFERENCE between:
_StateProvider and StateNotifierProvider
or
_AsyncNotifierProvider
How and when is better to use that...
is important create simple and very clear case of study (from scratch!!!!!).
Tell you this because i have this issue when i just started to learn in existing tutorials about Riverpod.
For me is very important "from scratch", because i can try to "enter" in your mind and understand how you think about creating things.
Is not important good UI here, tree simple data to receive or listen it's enough
ThankYouVeryMuch
The best answer five stars
Thats briliant tutorial! Thanks man. Can't wait for bloc EASY tutorial
T’es Québécois?
as of now rivepod a lot has changed .... imagine having a build method in business logic.
This is just the basics.... you need to cover future and stream providers as well for beginners.
watch, read?
thats funny.
why not use the word set and get like any state management in js
AI Text to Speech Flutter Full App
Not up to date!
deprecated providers
Hmm, what an unnecessary state manager
out of date
Hello, I bought the Zero To Hero course and I noticed there is an updated one may you please switch me to the updated one. I messaged you on discord but no response
Just replied to you on Discord 🔥