Managing State in Flutter - Introducing Flutter

preview_player
Показать описание
Let's get our app's progress bar working to reflect our task progress! How do you share state between widgets in Flutter? Learn what state management is and how you can use it to share state between widgets.

#Flutter
Рекомендации по теме
Комментарии
Автор

Hi y'all! I just wanted to say thank you for keeping the dialogue going on this video and keeping things respectful! I know state management can be a contentious topic where we can have strong, varying opinions. Naturally, I was a bit hesitant taking on this video 🫣 but seeing the responses and conversations on your preferred state management tell me that the effort has paid off :) Thank you for being an awesome community with such a welcoming environment!

KhanhFlutter
Автор

I was having two options: React or Flutter. And I am glad I chose Flutter. This is one of the most amazing and energetic community of developers. No doubt Flutter will touch skies in the coming years.

akshaysrivastavaofficial
Автор

Got a big smile on my face when i saw that you are "promoting" riverpod on this official channel. Best state management solution for flutter for sure!

Lensbreak
Автор

This is an awesome explanation! Very easy to understand. Althought if you have team with mixed expertise. Then using riverpod can quickly get messy and then you have to reinvent the concepts of how to structure your code. In bloc, the standards are well defined. You have 3 files - State, Events and the bloc. Anyone starts new does have to feel like they are lost in the woods when looking at the code.

_dinesh
Автор

Nice video. At this time I still prefer to use Bloc mainly because it works so well in teams.

It's more opinionated than Riverpod which (I guess) makes it less flexible but when working in teams or in situations where another developer is going to have to look at my code half a year from now it's really nice because it forces the developers to write code in a certain way, which creates consistency. That consistency is important so that the developers can understand each other's code better without running into surprises.

littlebearandchicken
Автор

For me, Riverpod is a breath of fresh air. I came from Provider, and it will become a mess quickly. I find it a little more exhaustive on debugging than Riverpod.

Also, I like the concept of AsyncValue in Riverpod.

devyb-cc
Автор

riverpod is rock solid! we use it in prod for over a year already 🤞
Now only thing that I wish for is static metaprogramming, since it'd makes riverpod even more intuitive to use.

akaneritsuki
Автор

Thanks for this video, Khanh! Extremely gnarly topic, well explained. And it's clear you took great care in striking the balance between giving people useful advice, and starting a flame war. Cheers!

P.S.: Seeing the provider and consumer blobs put a big smile on my face!

filiphracek
Автор

When I understood the watch I felt a rock lifted from my heart, it felt so easy

matteoborghi
Автор

Just started riverpod and it has been awesome!!

franklinoladipo
Автор

Scoped model, provider, inherited widgets are usually my go to choices

anmolkapoor
Автор

Love Blocs and Riverpod, but still use Redux + Epics combo in production :D

alvin
Автор

Great solution for state management =)

guycz
Автор

Riverpod is definitely the best state management library available for flutter

BrunoCodeman
Автор

Great video... also using Riverpod right now...

saqqara
Автор

I understand Google recommends Provider.. but with so many state management tools and approaches, it would be nice to have guidelines for best practices.

bennguyen
Автор

Flutter's UI code, out-of-box support and documentation are awesome. Plus I love coding in dart. Still can't use in webdev cause after build its heavy and slow, specially lag in animation. Really hope it gets better and better. Although mobile and desktop builds seem fine.

devflix
Автор

You are great. I have been working with state management solutions for a long time understanding little of it. This video makes understanding those solutions pretty easy and I am thankful for that. Keep up those videos! :D

sukruozgundemirel
Автор

And here I was using shared preferences 😅 for this.

naveedislam
Автор

This video was very helpful with all that info condensed in 5 mins. I wish there was corresponding code as with previous videos.
I have 2 errors in the main.dart file
TaskItem has a red squiggly line underneath.
The progress bar does not work.

reggieholm