so, do you have any examples of the "counter" variable/instance being accessible by other pages? this video is great and all, but the purpose of state management is to be cross-app (span multi pages). love the tutorial, very clear and insightful, just think it falls short a bit by actually covering the main intention of mobx/state management. thanks!
So what happens when you separate the counter inc/dec controls from the count value into separate widgets? Do you have to still initialize the store in the parents and pass the store to each, or can the store in each be initialized somehow and hold state between them? I've not been able to get things to work when they're in separate files.
Thanks! A lot easier than BloC for me. But to go further: if i move the "Observer" Widget into its own Subwidget/Subclass and call it in the main/parent Widget, it won't get rendered anymore. How do i get the main widget to track the changes? If i print to the console i can see that the buttons are updating the counter value but nothing gets rendered. Any tips on that?
@@fooked1 with MobX you can fine control the re-renders. With provider, when any part changes, all the depending widgets will re-render and it might be expensive in some cases.
For the actual MobX tutorial skip to 05:00 after the installation part. For some reason we sit (for probably the millionth time) through another implementation of the "Counter App" for a whole 5 minutes. We get it! You can make an app that displays a counter with Flutter. People who want to understand state management probably already know how, so stop showing us in such detail the way you align and choose icons for your buttons.
Yes, the .g stands for generated. Mobx generates this file and with the line part "counter.g.dart" you say that this file is part of the same library as counter.dart. Though the Dart Team now encourage people to avoid using the part keyword and instead create mini libraries. Cant be sure what will happen with the packages that generate these files
Please, continues this series with more things with mobx. Awesome!!!
Aislan de Sousa Maia Will do! Thanks for watching.
Very clear and insightful
I am a fan of those who tell the story without confusion. Congratulations, good expression!
I have tried BLOC, Provider, MVP but nothing like this. Amazing!!!
That was really short and right up to the mark. Great Job.
This makes sense than other videos I've seen on youtube. Thank you.
Really straight forward and useful introduction to MobX. Thanks!
Thank you! 👍
How can I use the store Counter (like the variable 'counter' in time 9:05 - line: 7) in others components? E.g. custom AppBar or others components.
Using MOBX, what would be a good/proper way to update a view with data from a push notification?
Great tutorial. Mobx is fun 💕
Lovely, thanks man.
so, do you have any examples of the "counter" variable/instance being accessible by other pages? this video is great and all, but the purpose of state management is to be cross-app (span multi pages). love the tutorial, very clear and insightful, just think it falls short a bit by actually covering the main intention of mobx/state management. thanks!
u just need to "observe" the counter variable in the other page I guess.
Did you ever figure this out?
Using this pattern will I have to create a file to manage the state of each page? Thanks for you help.
How many state management will come.. Rxdart, bloc, scope, mobx, I'm so confused now.
same..
provider is official recommended
@@Tianex for small apps haha
Awesome explanation
what should i use, bloc with RxDart or MobX
thanks for the great video! what about shared state between widgets with mobx?
So what happens when you separate the counter inc/dec controls from the count value into separate widgets? Do you have to still initialize the store in the parents and pass the store to each, or can the store in each be initialized somehow and hold state between them?
I've not been able to get things to work when they're in separate files.
Thanks! A lot easier than BloC for me. But to go further: if i move the "Observer" Widget into its own Subwidget/Subclass and call it in the main/parent Widget, it won't get rendered anymore. How do i get the main widget to track the changes? If i print to the console i can see that the buttons are updating the counter value but nothing gets rendered. Any tips on that?
I guess (not sure) you can use provider to make the store available for all descendant widgets, pub.dev/packages/provider
@@karianpour So why not just provider to manage the state itself then?
@@fooked1 with MobX you can fine control the re-renders. With provider, when any part changes, all the depending widgets will re-render and it might be expensive in some cases.
Seems very nice, but how does it scale? Do you have an example of a big project using mobx?
For the actual MobX tutorial skip to 05:00 after the installation part.
For some reason we sit (for probably the millionth time) through another implementation of the "Counter App" for a whole 5 minutes.
We get it! You can make an app that displays a counter with Flutter. People who want to understand state management probably already know how, so stop showing us in such detail the way you align and choose icons for your buttons.
gracias excelente tutorial
Great work, really helpful!
Thanks Larry!
How can i send parameters on the function?
A sample with complex store would be nice, like list and map.
Great many thanks for this. Unfortunately the article link seems broken.
Amazon vidéo! Thanks a lot!!!
How will this be used in global state management?
Thanks a lot!.Very helpful for me!.Amazing
Glad you found it helpful!
Thank you for this video. Really
i am not able to produce .g.dart file
awesome
Greate thanks ♥
How you get counter.g.dart?
Is it appear automaticly?
Yes, the .g stands for generated. Mobx generates this file and with the line part "counter.g.dart" you say that this file is part of the same library as counter.dart. Though the Dart Team now encourage people to avoid using the part keyword and instead create mini libraries. Cant be sure what will happen with the packages that generate these files
JUST WOOOOOOOOOOOOOOOOW!!!
Thanks a lot!. Very helpful for me :)
Here's the article for this video: developer.school/flutter-state-management-with-mobx/
And what about streams?
Thanks!
Hello, may I ask what font this is?
Operator Mono. I made a video on this which you can check out: ua-cam.com/video/NoPe1KXYOtg/v-deo.html
@@paulhalliday Oh, thank you. You helped me a lot.
More examples with MobX, please!
code generation dosenot work for me
Why do you need mobx and flutter mobx? It makes no sense to me...
please do Redux. Or maybe an update for provider 3.0
👏🏼👏🏼👏🏼👏🏼
mobx great clean fast than bloc and getx