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.
@@sadhlife Yes, I agree, although at the time the video was released, Provider was introduced by the Flutter Team at the Google IO 2019. ua-cam.com/video/d_m5csmrf7I/v-deo.html Therefore one cannot blame Fireship for not presenting providers then. However, by now Provider should be mentioned via an overlay, because Provider is the standard way to manage the state in Flutter.
sorry to be so off topic but does any of you know a method to log back into an Instagram account?? I somehow lost the login password. I appreciate any assistance you can give me
@London Sonny I really appreciate your reply. I found the site on google and I'm in the hacking process atm. Takes a while so I will reply here later when my account password hopefully is recovered.
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.
@@MrHimanshun The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. This pattern uses a central registry [that's what you typically see in main.dart file in a form of MultiProvider([service1, service2])] known as the "service locator", which on request returns the information necessary to perform a certain task. en.wikipedia.org/wiki/Service_locator_pattern
@Ruwen Höltge We know what it is. He is asking why wasn't even mentioned in the video since it is, by far, the most used library for state managemente in Flutter. I'm surprised about that too.
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.
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.
Check out this blog about get_it + rxdart/rxcommand: www.burkharts.net/apps/blog/rxvms-foundations-rxcommand-and-getit/ Looking forward for more awesome videos of practicle demonstration base on these tools from you too! Great job, Thanks!
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
State management is a fairly new subject for me, but from first impressions of using redux in angular, I'd say is very complicated to try to mitigate issues that could be solve in different and simpler ways. Thanks for the video. Your channel has some great info! :)
In case you wonder syntax "stream$" at 7:13 it's medium.com/@benlesh/observables-and-finnish-notation-df8356ed1c9b (observable - convention for naming it)
I just came across this video, it explains the fundamentals really good. I've ended up using riverpod after doing my research, but it is not mentioned in this video, maybe you could do a new one!! Great channel
I am lucky to find this channel ...😅😅👌👌👍👍 , really good content , I was Soo confused before , but this videos are really helpful , please keep uploading
I remember like a year ago I bought this web development course and the Redux and Hooks sections were explained for like a 5 year old. Still I didn't understand jack shit. 🤦♂
There are so many choices! The best choice for the apps I work on is probably gonna be "scoped_model" because it's lightweight and single-purpose. That said, I'm not opposed to giving Redux or MobX a try.
BLoC/flutter_bloc is the way to go for local state and Redux/RxDart way, for global state. The rest is just for basic state management when you don't expect your app to grow. I didn't know about the flutter hooks package, but looks really interesting.
I've personally found redux awkward to implement, and stream-based solutions wasteful (I know that dart is optimized to build lots of immutable objects and dispose of them quickly with its GC, but I've never trusted it too much :P) I like the simplicity of scoped_model because you don't have to implement whether the widget should update when you consume it, and you can still have a singleton with other models so you can do stuff like serialization and persisting the data. I'm not saying that it's the solution for everyone though, persistent storage is just a weird requirement I have
@@Dorumin Scoped model is really awesome, that's probably why its in the official docs now. Personally, I like my streams because they can controlled and monitored in predictable ways, and just feel right with realtime data sources like firebase.
@@Fireship Yes, often enough, it's recommended to use a combination of available state management solutions based on your needs. There will never be one fits all case.
@@Dorumin Stream-based libraries and reactive programming are the best thing that ever happened in software development. You are severely underrating the true power of Rx and co. Completely changed the game for how apps are architectured and built.
By the way thank you for your videos I went to your website and started learning too It helped us a lot in building our first app deliverable within weeks
The Elm Architecture is the godfather of redux and bloc and similar. I personally can distinguish two overarching ideas for state management: state-action-view or FRP. Web devs went through this, now it's flutter's time. However, Elm also used to use FRP but moved on as it didn't scale.
Good video! This video uploaded at just right time for me when struggling to understand flutter. Flutter hook looks promising for me btw. Love the flutter t-shirt 😄
Great video, almost covered everything about state management, Thanks! My thoughts: - I've never heard about StateBuilder and that it can be used with StatelessWidget, which can really be helpful sometimes. - i didn't know that we should use SetState function inside the Inherited Widget, is that necessary? - you probably didn't mention the Provider and ChangeNotifier classes because they came after this video, but they're quite an extension for ScopeModel class. - My favourite approaches for state management are: Provider, Bloc and get_it, or maybe a mix between two of them.
Thx for the great videos as always! Hope to get more videos on RxDart + RxCommand + GetIt + Firebase (simple tut or some example app using these packages will be awesome!), this set of packages is the best state management techniques in Flutter based on what I've read and understand, if I'm wrong please tell me, I'm pretty new to all of these, so I would like to learn more! btw, really thanks to Frank Pepermans, Brian Egan and Thomas Burkhart , these Flutter/Dart packages really makes me exited and joyful to build app in Flutter!
@@Fireship Cool! definitely take a look if you can, check out the author's article here: www.burkharts.net/apps/blog/rxvms-foundations-rxcommand-and-getit/ I've been looking for more videos or article about RxDart + GetIt + Firebase, but no luck for now, look forward to see more people start to use and showcase these combination of packages!
@@Fireship anyways thanks for the great video. Ive learned a lot since your ng related videos. Im also from ionic background completely switched to Flutter and so happy with it.
I guess this video is just outdated, but as a Flutter Developer I mainly use Providers, which are (imo) the best Inherited Widget wrapper, less error prone, in which you can decide if you actually want to listen to changes or no. Another Widget I use a lot and I didn't see in this video is the Consumer Widget. That's just too easy to use and I highly recommend it (but it listens to changes by default).
I agree that the model part looks very similar and I still have some questionmarks about pros and cons of both. A great and simple Provider-showcasing/template can be found in the video 'Flutter Provider Architecture for State Management' from filledStacks. Would be great if fireship could talk >a bit more< about when he would personally use either of these solutions.
@@maexlep89 Provider is now the preferred method, snd was suggested by google devs in IO 19, a few weeks after this video went live flutter_bloc is also gaining popularity stuff like rxjs is too complicated to justify usage in many apps when provider can do it just fine, and get_it is better for much simpler apps.
I am a personal fan of Firebase because of its adaptability and the ease of integrations. It is definitely a little buggy since I last used Firestore in Flutter (February 2019) but a great POC item.
Awesome video and explanations!! This is the best I´ve seened about this topic hard topic. My option is with RxDart. Great flexibility. The video made it clear for me because I thought that RxDart and Bloc was the same thing. I didn't know about the flutter hooks, I´m going to find out about it.
Thanks a lot for the video. I loved the explanation. I think I want to try out the Bloc pattern. I use redux in my current react native project, but honestly I try to avoid putting anything in redux if possible, because of the boilerplate. I definitely like the look of Bloc pattern in Flutter and the T-shirt! Hope I win it. Thanks for the awesome video.
Good job on the video, I know how much time and effort it takes to make these videos. As for state management for a prototype, would you recommend using BLOC?
Great video - thanks! My favourite at the moment is RxDart with StreamBuilder on StatelessWidgets. What I'm not sure about is how I call dispose to tidy up when the StatelessWidget is disposed. At about 8:20 you mention that StreamBuilder will automatically close any streams when the widget is disposed. Does this mean I do not need to worry about doing this myself?
I've only used Redux as a state manager in React. It was very hard to get a grip on it at the beginning cause I didn't really know what it was used for. Now I like to explain it as a global variable that holds key values that you can use anywhere in the app. I still find Redux to be a bit verbose to do simple things though.
What state management strategy would you recommend for the scenario described at 4:12? I'm currently stuck on a project trying to figure out a good solution. The siblings are a list of users, and when tapping one of the users in that widget, it should somehow give that user object to its sibling "form" widget, to prepopulate and edit.
I really like Bloc state management, compared to Redux, you can create as much bloc objects as you want and you can get fine grain control in the app. Also, Mobx is pretty funny state management library, it reduce boilerplate code in the app and it is easy to maintain the code. These two libs I used in several projects and they are pretty reliable and easy to use.
Thanks for the best summary with code samples. The flutter doc now gives an example using Provider package. Do you recommend using that instead of BLOC or RxDart? flutter.dev/docs/development/data-and-backend/state-mgmt/simple
It's a industrial standard practice to use $ after nave of stream. Nothing special, it tells developers that this is reactive in nature. I never put $ because it looks wierd bu it's up to you.
Great Video! I would love to see a video on code sharing between Flutter and Web. As far as I know, its currently only possible with AngularDart. Have you had experience with this framework? I can't wait for humingbird...
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.
Yes update vid please :)
Sounds good to me 🙂
yess, update please
Up
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
Should've mentioned Provider. it's simple and solid, and much like the scoped_model library but much more popular
@@sadhlife Yes, I agree, although at the time the video was released, Provider was introduced by the Flutter Team at the Google IO 2019. ua-cam.com/video/d_m5csmrf7I/v-deo.html
Therefore one cannot blame Fireship for not presenting providers then. However, by now Provider should be mentioned via an overlay, because Provider is the standard way to manage the state in Flutter.
@@friebetill i see, didn't know, and yeah!
Should we know all of them?
@@mehraanakbarii Definitely not, start with a simple one e.g. provider and then you can still upgrade to more powerful systems if necessary.
Fireship is becoming one of the best tech channel, It's content are simply amazing.
Thank you Sadab!
sorry to be so off topic but does any of you know a method to log back into an Instagram account??
I somehow lost the login password. I appreciate any assistance you can give me
@Johan Emerson instablaster ;)
@London Sonny I really appreciate your reply. I found the site on google and I'm in the hacking process atm.
Takes a while so I will reply here later when my account password hopefully is recovered.
@London Sonny It did the trick and I finally got access to my account again. I am so happy:D
Thank you so much, you saved my ass!
Best video about state management with flutter. Congratulations !!🎊
Finally: a clear explanation of states management.
Thank you
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.
What about Provider approach? Is the one that Im using, what's your opinion about it?
@Ruwen Höltge I am very new other SM , could please tell me what is a service locator??
@@MrHimanshun The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. This pattern uses a central registry [that's what you typically see in main.dart file in a form of MultiProvider([service1, service2])] known as the "service locator", which on request returns the information necessary to perform a certain task. en.wikipedia.org/wiki/Service_locator_pattern
@Ruwen Höltge I wish I read your comment 1 year ago
I use Provider too. 👍
@Ruwen Höltge We know what it is. He is asking why wasn't even mentioned in the video since it is, by far, the most used library for state managemente in Flutter. I'm surprised about that too.
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.
For simplicity, consider using provider which has been recomended by the Flutter team for a while now.
You are the BEST!
quick, to the point, not discussing your vacation to Florida and wasting everyone's time
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.
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...
A very useful overview of state management for developers on a time-constraint budget. Thanks for the introduction!
Finally! I've trying to understand the state management in flutter for a few days. Thank you.
Never knew there were so many ways to handle state management. Thanks for explaining each of these techniques!
I for one am a huge fan of Behavior Subjects. Both in Angular and now in my new love of Flutter.
BehaviorSubjects FTW!
Wasn't aware of the get_it package, will definitely check it out. Great video!
Wished I had this video when I started haha
Check out this blog about get_it + rxdart/rxcommand: www.burkharts.net/apps/blog/rxvms-foundations-rxcommand-and-getit/
Looking forward for more awesome videos of practicle demonstration base on these tools from you too! Great job, Thanks!
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
Sharing data easily has always been a big one for me, makes prototyping way faster imo.
Great video, but a 2022 version would be awesome! Almost everything after the starter app/stateful widget are mostly unused now :)
State management is a fairly new subject for me, but from first impressions of using redux in angular, I'd say is very complicated to try to mitigate issues that could be solve in different and simpler ways. Thanks for the video. Your channel has some great info! :)
Fireship is sailing in flutter!
it's Awesome
Glad I found this video before starting. You da man
Just when I got into Flutter. Perfect timing.
I love your channel you are very concise and you talk about what really matters
In case you wonder syntax "stream$" at 7:13 it's medium.com/@benlesh/observables-and-finnish-notation-df8356ed1c9b (observable - convention for naming it)
Man I’ve been waiting for this. Has to be one of the best vids on state management. Thank you!!
Very good for an overview of state management in flutter. Flutter hooks and scoped model was new to me. It is good to have the choice.
I just came across this video, it explains the fundamentals really good. I've ended up using riverpod after doing my research, but it is not mentioned in this video, maybe you could do a new one!! Great channel
Thanks for making a list of every solution at one place! BehaviourSubject & RxDart looks super neat and pretty much solves every problem :P
BehaviorSubjects are amazing :)
Clarified my doubts about the state management in Flutter. Thanks a lot.
I am lucky to find this channel ...😅😅👌👌👍👍 , really good content , I was Soo confused before , but this videos are really helpful , please keep uploading
01:57 I can't stop myself to press ctrl+s to remove that round ball with main.dat indicating that file is not saved.
Wow! Great video, nice to have all the different methods concisely explained in one place.
Behave responsibly with the state!! Awesome intro to all the patterns for flutter. 😀😀
Now I feel stupid ;-)
This video took a lot of effort and testing, state management is hard.
I'm glad I'm not the only one here))
Same feeling here 😭
I'm totally with you there, bro.
I remember like a year ago I bought this web development course and the Redux and Hooks sections were explained for like a 5 year old. Still I didn't understand jack shit. 🤦♂
State managemet is a data workflow of your application. Love this T-shirt
I'm confused by state by I think I'm getting the hang of things!! Thanks for the tutorial and love that flutter t shirt!
// ! RxDart Cheatsheet
// Step 1: Create global variable
BehaviorSubject counter = BehaviorSubject.seeded(0);
// Step 2: Access variable inside StreamBuilder
StreamBuilder(
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()
}
Yes, that's pretty much correct... Easy and straight forward..
such a long video but passed so fast = A really good one!!!
thanks for that
There are so many choices! The best choice for the apps I work on is probably gonna be "scoped_model" because it's lightweight and single-purpose. That said, I'm not opposed to giving Redux or MobX a try.
Try rx and stream, it's super powerful and reactive programming apply to most programming language!
Just getting started with flutter. This helps a lot to clarify issues. Thanks!
Simply superb... Almost you covered everything.
BLoC/flutter_bloc is the way to go for local state and Redux/RxDart way, for global state. The rest is just for basic state management when you don't expect your app to grow. I didn't know about the flutter hooks package, but looks really interesting.
I would agree with you here, it's nice to to have the flexibility of both.
I've personally found redux awkward to implement, and stream-based solutions wasteful (I know that dart is optimized to build lots of immutable objects and dispose of them quickly with its GC, but I've never trusted it too much :P)
I like the simplicity of scoped_model because you don't have to implement whether the widget should update when you consume it, and you can still have a singleton with other models so you can do stuff like serialization and persisting the data. I'm not saying that it's the solution for everyone though, persistent storage is just a weird requirement I have
@@Dorumin Scoped model is really awesome, that's probably why its in the official docs now. Personally, I like my streams because they can controlled and monitored in predictable ways, and just feel right with realtime data sources like firebase.
@@Fireship Yes, often enough, it's recommended to use a combination of available state management solutions based on your needs. There will never be one fits all case.
@@Dorumin Stream-based libraries and reactive programming are the best thing that ever happened in software development. You are severely underrating the true power of Rx and co. Completely changed the game for how apps are architectured and built.
I have created these packages:
1. super_easy_in_app_purchase
2. super_easy_permissions
These will make your life a lot easier :-)
Nicely done!!! All the possible state management approaches for a flutter app. 👍
Great content as usual. Still relevant in 2021 👍
By the way thank you for your videos I went to your website and started learning too It helped us a lot in building our first app deliverable within weeks
The Elm Architecture is the godfather of redux and bloc and similar. I personally can distinguish two overarching ideas for state management: state-action-view or FRP. Web devs went through this, now it's flutter's time. However, Elm also used to use FRP but moved on as it didn't scale.
I liked elm but no company I worked at and no developer I know is using elm.
@@akshattamrakar9071 regardless of that, the elm architecture has made a massive impact on the industry.
Good video! This video uploaded at just right time for me when struggling to understand flutter. Flutter hook looks promising for me btw. Love the flutter t-shirt 😄
I think it's time to revisit this topic because I waiting to learn about Provider and Riverpod.
Great video, almost covered everything about state management, Thanks!
My thoughts:
- I've never heard about StateBuilder and that it can be used with StatelessWidget, which can really be helpful sometimes.
- i didn't know that we should use SetState function inside the Inherited Widget, is that necessary?
- you probably didn't mention the Provider and ChangeNotifier classes because they came after this video, but they're quite an extension for ScopeModel class.
- My favourite approaches for state management are: Provider, Bloc and get_it, or maybe a mix between two of them.
The provider is maybe the best solution for state management for me.
Thx for the great videos as always! Hope to get more videos on RxDart + RxCommand + GetIt + Firebase (simple tut or some example app using these packages will be awesome!), this set of packages is the best state management techniques in Flutter based on what I've read and understand, if I'm wrong please tell me, I'm pretty new to all of these, so I would like to learn more!
btw, really thanks to Frank Pepermans, Brian Egan and Thomas Burkhart , these Flutter/Dart packages really makes me exited and joyful to build app in Flutter!
Very thankful for their contributions! Have not used RxCommand yet, but looks interesting :)
@@Fireship Cool! definitely take a look if you can, check out the author's article here: www.burkharts.net/apps/blog/rxvms-foundations-rxcommand-and-getit/
I've been looking for more videos or article about RxDart + GetIt + Firebase, but no luck for now, look forward to see more people start to use and showcase these combination of packages!
Thanks for one more amazingly useful video during my learning stage 👍🏻 keep it up 🖐🏻
I love your small and succinct videos
Thank for this video, you helped to realize the others. Thanks for fireship too.
Fantastic. But wait... so what is the best way? I used redux with flutter. Should i go with BLOC instead?
There is no best way! Do feels right in your heart ❤️
@@Fireship anyways thanks for the great video. Ive learned a lot since your ng related videos. Im also from ionic background completely switched to Flutter and so happy with it.
Redux is great IMO. Take a look at redux epics too.
@@amsakanna i use Redux for many projects. Yeah its great but it requires too much coding.
@@Fireship i tried BloC pattern and now loving it!
very good information, very helpful , even i don't know 10 state management things , i learn lot
Awesome video
Provider is missing in the list 🙂 good video
I guess this video is just outdated, but as a Flutter Developer I mainly use Providers, which are (imo) the best Inherited Widget wrapper, less error prone, in which you can decide if you actually want to listen to changes or no. Another Widget I use a lot and I didn't see in this video is the Consumer Widget. That's just too easy to use and I highly recommend it (but it listens to changes by default).
thx for the vid, how about Provider?
scoped_model looked exactly like it, but I think provider is made by the flutter team itself
I agree that the model part looks very similar and I still have some questionmarks about pros and cons of both.
A great and simple Provider-showcasing/template can be found in the video 'Flutter Provider Architecture for State Management' from filledStacks.
Would be great if fireship could talk >a bit more< about when he would personally use either of these solutions.
@@maexlep89 Provider is now the preferred method, snd was suggested by google devs in IO 19, a few weeks after this video went live
flutter_bloc is also gaining popularity
stuff like rxjs is too complicated to justify usage in many apps when provider can do it just fine, and get_it is better for much simpler apps.
I see BloC makes a lot of sense for flutter
I am a personal fan of Firebase because of its adaptability and the ease of integrations. It is definitely a little buggy since I last used Firestore in Flutter (February 2019) but a great POC item.
Wow i only knew the 1st one. But dang loved the RxDart method!! 💖
Awesome video and explanations!! This is the best I´ve seened about this topic hard topic.
My option is with RxDart. Great flexibility. The video made it clear for me because I thought that RxDart and Bloc was the same thing.
I didn't know about the flutter hooks, I´m going to find out about it.
I think something like vuex is very simple to understand and still very powerful
Great content. I think I'll go with BLoC
Not a bad choice :)
Like your videos, short and informative.
Thanks a lot for the video. I loved the explanation. I think I want to try out the Bloc pattern. I use redux in my current react native project, but honestly I try to avoid putting anything in redux if possible, because of the boilerplate. I definitely like the look of Bloc pattern in Flutter and the T-shirt! Hope I win it. Thanks for the awesome video.
Good job on the video, I know how much time and effort it takes to make these videos. As for state management for a prototype, would you recommend using BLOC?
Thank you, this video was extra challenging. Bloc might be more than you need for a prototype, scoped model or a simple stream might be easier.
my god! I was searching for this yesterday 😭
Nice video, I also got into push recently... Still experimenting with networks but so far MonadPlug is the best...
shit i was passing values to each and every constructor ... : )
aw shit we are in the same boat
Fantastic video about state management
Only used NgRx and it believe there s a lot of boilerplate especially with the effects. Plus the state tends to grow in size as you use the app
Good compact well explained about alternatives available for flutter state.
WOW, super simple, great compression
Awesome content about State management!!!
Great content with nice animations🤩🤩
Thanks for the video. I just got pro membership at your site.
Great video - thanks! My favourite at the moment is RxDart with StreamBuilder on StatelessWidgets. What I'm not sure about is how I call dispose to tidy up when the StatelessWidget is disposed. At about 8:20 you mention that StreamBuilder will automatically close any streams when the widget is disposed. Does this mean I do not need to worry about doing this myself?
yes it is handled automatically by the StreamBuilder class
The fact that providers are not even mentioned here scares me a bit.
This video definitely needs an update.
Awesome explanation 🔥😍👍
I've only used Redux as a state manager in React. It was very hard to get a grip on it at the beginning cause I didn't really know what it was used for.
Now I like to explain it as a global variable that holds key values that you can use anywhere in the app.
I still find Redux to be a bit verbose to do simple things though.
It is low-level and requires a lot of configuration. That's why I prefer the BehaviorSubject approach, or scoped model is a good option.
What state management strategy would you recommend for the scenario described at 4:12? I'm currently stuck on a project trying to figure out a good solution. The siblings are a list of users, and when tapping one of the users in that widget, it should somehow give that user object to its sibling "form" widget, to prepopulate and edit.
Love your Flutter Tutorial.
Thank you :)
That t-shirt rocks , anything for the t-shirt
I really like Bloc state management, compared to Redux, you can create as much bloc objects as you want and you can get fine grain control in the app. Also, Mobx is pretty funny state management library, it reduce boilerplate code in the app and it is easy to maintain the code. These two libs I used in several projects and they are pretty reliable and easy to use.
The simpler singleton stream approach is exactly what I was looking for. To hell with complexity.
Thanks for the best summary with code samples. The flutter doc now gives an example using Provider package. Do you recommend using that instead of BLOC or RxDart? flutter.dev/docs/development/data-and-backend/state-mgmt/simple
Ha! State management ..... Hard to learn but this video helped!
Sometimes it's only hard if you make it hard, focus on keeping it simple :)
I have been using flutter_flux, it is simple and understandable.
Which state management you prefer for a beginner or intermediate flutter developers??
Scoped Model or the BehaviorSubject approach I showed in the video.
Thanks
@7:12, What is stream$ ? Just another function name? Why use the $ sign?
It's a industrial standard practice to use $ after nave of stream. Nothing special, it tells developers that this is reactive in nature.
I never put $ because it looks wierd bu it's up to you.
Great Video! I would love to see a video on code sharing between Flutter and Web. As far as I know, its currently only possible with AngularDart. Have you had experience with this framework? I can't wait for humingbird...
I have not explored this yet, but I've seen some pretty impressive code sharing using the bloc pattern between web/flutter.
Check out medium.com/flutter-community/code-sharing-with-bloc-b867302c18ef for one way to do it
Great video!! When we have multiple classes like Counter and we are using GetIt do we call registerSingleton for all of them ?
Thank you very much for this nice created video, it was really helpful.
Thank you for his Video. What is your opinion on Flutter provider package?
IMHO the built in StreamController is a very solid choice. Not sure why it was left out in this video.
BehaviorSubject is the Rx equivalent to a StreamController, I probably should have mentioned that :)
Is it weird I like even before the video plays?
that makes two of us!