Flutter: State Management with Mobx

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 63

  • @aislanarislou
    @aislanarislou 5 років тому +17

    Please, continues this series with more things with mobx. Awesome!!!

    • @paulhalliday
      @paulhalliday  5 років тому +5

      Aislan de Sousa Maia Will do! Thanks for watching.

  • @nghiadoan7572
    @nghiadoan7572 2 роки тому

    Very clear and insightful

  • @sedatgulmen.developer
    @sedatgulmen.developer 4 роки тому

    I am a fan of those who tell the story without confusion. Congratulations, good expression!

  • @amonchowdhury3553
    @amonchowdhury3553 5 років тому +9

    I have tried BLOC, Provider, MVP but nothing like this. Amazing!!!

  • @nikhilemmanuelmusic
    @nikhilemmanuelmusic 4 роки тому

    That was really short and right up to the mark. Great Job.

  • @7huannp
    @7huannp 4 роки тому +1

    This makes sense than other videos I've seen on youtube. Thank you.

  • @amugofjava
    @amugofjava 5 років тому +2

    Really straight forward and useful introduction to MobX. Thanks!

  • @tiagoaleffdasilva8092
    @tiagoaleffdasilva8092 4 роки тому +1

    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.

  • @JinFeeiLoh
    @JinFeeiLoh 3 роки тому

    Using MOBX, what would be a good/proper way to update a view with data from a push notification?

  • @hrishikeshpathak430
    @hrishikeshpathak430 4 роки тому +1

    Great tutorial. Mobx is fun 💕

  • @nicolaszein
    @nicolaszein 2 роки тому

    Lovely, thanks man.

  • @jimmymensinger5570
    @jimmymensinger5570 5 років тому +5

    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!

    • @spiralni
      @spiralni 5 років тому

      u just need to "observe" the counter variable in the other page I guess.

    • @fooked1
      @fooked1 4 роки тому

      Did you ever figure this out?

  • @cristianperesdelima7402
    @cristianperesdelima7402 5 років тому +1

    Using this pattern will I have to create a file to manage the state of each page? Thanks for you help.

  • @superman2guntur
    @superman2guntur 5 років тому +13

    How many state management will come.. Rxdart, bloc, scope, mobx, I'm so confused now.

    • @Ainigma
      @Ainigma 5 років тому

      same..

    • @Tianex
      @Tianex 5 років тому +4

      provider is official recommended

    • @4lm0std0n3
      @4lm0std0n3 5 років тому +8

      @@Tianex for small apps haha

  • @husseinhammoud6613
    @husseinhammoud6613 5 років тому

    Awesome explanation

  • @Saketjsaket
    @Saketjsaket 4 роки тому

    what should i use, bloc with RxDart or MobX

  • @eminem2
    @eminem2 4 роки тому

    thanks for the great video! what about shared state between widgets with mobx?

  • @fooked1
    @fooked1 4 роки тому

    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.

  • @Donknast
    @Donknast 5 років тому +2

    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?

    • @karianpour
      @karianpour 5 років тому

      I guess (not sure) you can use provider to make the store available for all descendant widgets, pub.dev/packages/provider

    • @fooked1
      @fooked1 4 роки тому +1

      @@karianpour So why not just provider to manage the state itself then?

    • @karianpour
      @karianpour 4 роки тому +1

      @@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.

  • @themodernarchitect7537
    @themodernarchitect7537 5 років тому

    Seems very nice, but how does it scale? Do you have an example of a big project using mobx?

  • @PNadav183
    @PNadav183 4 роки тому +2

    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.

  • @williamsalazar2624
    @williamsalazar2624 5 років тому

    gracias excelente tutorial

  • @walkersean7592
    @walkersean7592 5 років тому +1

    Great work, really helpful!

  • @nxnqzd
    @nxnqzd 4 роки тому

    How can i send parameters on the function?

  • @karianpour
    @karianpour 5 років тому +1

    A sample with complex store would be nice, like list and map.

  • @BelgianDaSeeD
    @BelgianDaSeeD 5 років тому

    Great many thanks for this. Unfortunately the article link seems broken.

  • @hugomejia7826
    @hugomejia7826 5 років тому

    Amazon vidéo! Thanks a lot!!!

  • @AntiThesis10125
    @AntiThesis10125 5 років тому

    How will this be used in global state management?

  • @dinethprabashwarabenthotag2002
    @dinethprabashwarabenthotag2002 5 років тому

    Thanks a lot!.Very helpful for me!.Amazing

  • @itssanchez5265
    @itssanchez5265 5 років тому

    Thank you for this video. Really

  • @AbhishekSharma-lo8fx
    @AbhishekSharma-lo8fx 4 роки тому

    i am not able to produce .g.dart file

  • @ДэлгэрсайханБаянмөнх

    awesome

  • @stophiccups2023
    @stophiccups2023 4 роки тому

    Greate thanks ♥

  • @bluetim6848
    @bluetim6848 4 роки тому

    How you get counter.g.dart?
    Is it appear automaticly?

    • @xEzeCKo
      @xEzeCKo 4 роки тому

      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

  • @spiralni
    @spiralni 5 років тому

    JUST WOOOOOOOOOOOOOOOOW!!!

  • @mohamedhelala908
    @mohamedhelala908 5 років тому

    Thanks a lot!. Very helpful for me :)

  • @paulhalliday
    @paulhalliday  5 років тому

    Here's the article for this video: developer.school/flutter-state-management-with-mobx/

  • @AntiThesis10125
    @AntiThesis10125 5 років тому

    And what about streams?

  • @DaviEduardoBarbosa
    @DaviEduardoBarbosa 5 років тому

    Thanks!

  • @xspai7735
    @xspai7735 5 років тому +1

    Hello, may I ask what font this is?

    • @paulhalliday
      @paulhalliday  5 років тому

      Operator Mono. I made a video on this which you can check out: ua-cam.com/video/NoPe1KXYOtg/v-deo.html

    • @xspai7735
      @xspai7735 5 років тому

      @@paulhalliday Oh, thank you. You helped me a lot.

  • @JakeDukin
    @JakeDukin 5 років тому

    More examples with MobX, please!

  • @youdube1203
    @youdube1203 4 роки тому

    code generation dosenot work for me

  • @alexi2706
    @alexi2706 2 роки тому

    Why do you need mobx and flutter mobx? It makes no sense to me...

  • @thomasmabika7291
    @thomasmabika7291 5 років тому

    please do Redux. Or maybe an update for provider 3.0

  • @rebarius
    @rebarius 5 років тому +1

    👏🏼👏🏼👏🏼👏🏼

  • @babayevnariman
    @babayevnariman 4 роки тому

    mobx great clean fast than bloc and getx