Flutter State Management - The Grand Tour

preview_player
Показать описание

1. StatefulWidget
2. StatefulBuilder
3. InheritedWidget
4. RxDart + BehaviorSubject
5. BLoC
6. Redux
7. Mobx
8. Scoped Model
9. Flutter Hooks
10. Firebase

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

After two years, this very important video starts getting old. With libraries being updated may be it is time for Fireship to revisit this topic. Thanks for your hardwork. A very nice channel indeed.

hasansalim
Автор

1. StatefulWidget 1:25
2. StatefulBuilder 2:43
3. InheritedWidget 4:16
4. RxDart + BehaviorSubject 6:12
5. BLoC 8:50
6. Redux 11:34
7. Mobx 11:57
8. Scoped Model 12:27
9. Flutter Hooks 12:58
10. Firebase 13:22

friebetill
Автор

Fireship is becoming one of the best tech channel, It's content are simply amazing.

sadabwasim
Автор

Best video about state management with flutter. Congratulations !!🎊

rubensdemelo
Автор

Thank you for stating that the web benchmarked way of handling state, i.e. rx with basic streams, is your favorite way. It gives me confidence that I can handle Flutter state management with what other fields already use and don't have to reinvent the wheel over again.


And stating that Firebase is already a huge solution for 99% of state management is also very important, and something most purists frown upon.

Fanaro
Автор

Finally: a clear explanation of states management.

Thank you

AndreaGiacon
Автор

Dude your way of teaching is the BEST I have ever seen. Fast, clean, simple and straight to the point. Why don't you make Udemy courses? If you do please tell me about them.

alithejumbo
Автор

For simplicity, consider using provider which has been recomended by the Flutter team for a while now.

MarkVolkmann
Автор

You are the BEST!
quick, to the point, not discussing your vacation to Florida and wasting everyone's time

remoteportal
Автор

One of the best videos, demonstrating most of the ways for state management. You got my attention with firestore as a state management option and I really want to watch a video about it, explaining how can be used.

nagas_dev
Автор

I for one am a huge fan of Behavior Subjects. Both in Angular and now in my new love of Flutter.

MichaelRichins
Автор

What about Provider approach? Is the one that Im using, what's your opinion about it?

mmsergi
Автор

Finally! I've trying to understand the state management in flutter for a few days. Thank you.

yeakleang
Автор

Never knew there were so many ways to handle state management. Thanks for explaining each of these techniques!

JonWood
Автор

A very useful overview of state management for developers on a time-constraint budget. Thanks for the introduction!

Quintusvw
Автор

// ! RxDart Cheatsheet

// Step 1: Create global variable
BehaviorSubject<int> counter =

// Step 2: Access variable inside StreamBuilder
StreamBuilder<int>(
stream: counter.stream,
builder: (context, snapshot) {
return Text('Count: ${snapshot.data}');
},
)

// Step 3: Modify the variable
counter.add(counter.value + 1);

// Step 4 (Optional): Close the stream when not required
@override
void dispose() {
counter.close()
}

xtraszone
Автор

Great video, but a 2022 version would be awesome! Almost everything after the starter app/stateful widget are mostly unused now :)

merthyr
Автор

I think state management makes easier the development of reactive uis, it helps a lot with dealing things like setState or manually re rendering the hole or widget when you may only need to render a specific small portion of it. On the other hand, helps sharing information across a wide component or widget tree which is a huge advantage

juliancorredor
Автор

I'm amazed by the fact that you know so much, I keep wondering about the effort it took for you to reach there. :) Great video and work. Cliche...

VictorKun
Автор

I love your channel you are very concise and you talk about what really matters

lvluli