Flutter MobX Tutorial - Transparent & Reactive State Management?

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 64

  • @nicolaszein
    @nicolaszein 4 ปีที่แล้ว +4

    Wonderful tutorial, love how you teach and the level of detail you provide. Can't thank you enough.

  • @tessertaha
    @tessertaha 5 ปีที่แล้ว +6

    Perfect timing, i really wanted a good video on Mobx!

  • @EibeMandel
    @EibeMandel 5 ปีที่แล้ว +40

    If you guys want to keep your workspace clean add this to your settings in VS Code to hide all the generated files:
    {
    "files.exclude": {
    "**/*.g.dart": true,
    }
    }

  •  5 ปีที่แล้ว +15

    Reso, can you think about write an article about TDD Clean Code Architecture using MOBX ?

  • @임창수-c7c
    @임창수-c7c 5 ปีที่แล้ว +1

    Your tutorial is really helpful. I hope you make use of mobx more later on.

  • @divichuy2575
    @divichuy2575 4 ปีที่แล้ว +1

    Nice, you should share more Mobx, i love Mobx.

  • @tonywright3777
    @tonywright3777 4 ปีที่แล้ว

    Mate this is so helpful, thanks heaps. Exactly the clarifications and detail I needed. Love that observable future, I was doing it the state = _ way up until 5 minutes ago.

  • @SharpMentor
    @SharpMentor 2 ปีที่แล้ว

    Can you please make one video on getx with clean architecture..

  • @naveenbharadwaj5059
    @naveenbharadwaj5059 3 ปีที่แล้ว +1

    what's your vsc theme ?

  • @Bathusaix
    @Bathusaix 4 ปีที่แล้ว

    hello great tutorial this ... could you tell me if you can use mopbx with freezed? or are they incompatible?

  • @RafaelDurelli
    @RafaelDurelli 5 ปีที่แล้ว

    Nice video. Thanks a lot. I think would be nice to make a serie chopper and mobx. ;)

  • @danvilela
    @danvilela 5 ปีที่แล้ว

    This was awesome! Thank you.

  • @akarshs9552
    @akarshs9552 4 ปีที่แล้ว +1

    Hey please upload more mobX contents

  • @trongnghiaoan7984
    @trongnghiaoan7984 2 ปีที่แล้ว

    What theme and fonts you used in your VSCODE?

  • @pembatamang8233
    @pembatamang8233 3 ปีที่แล้ว

    Mat: almost boilerplate free... imma head out

  • @mohamadosama9797
    @mohamadosama9797 5 ปีที่แล้ว

    Thanks bro ... please make tutorial for mobx 😁😁

  • @drdDavi
    @drdDavi 5 ปีที่แล้ว

    Excellent video, but why should I choose MobX over provider? Provider seems easier to reason with... Can I have your thoughts.

  • @sankaranarayananp8407
    @sankaranarayananp8407 10 หลายเดือนก่อน

    Can I use getit instead of provider ?

  • @motibartov3944
    @motibartov3944 4 ปีที่แล้ว

    Hi, thanks for this video Reso!
    Would you recommend making the page a child of a Consumer which is a child of the Provider?, by this you can provide the store in the widget page constructor? by this you wouldn't need to get it in the didChangeDependencies

  • @amit.flutter
    @amit.flutter 3 ปีที่แล้ว +1

    hello, sir can you make new videos on MOb x because there is no power video available for beginners and all methods and syntax are totally new in flutter 2.0

  • @ianoliveiradev
    @ianoliveiradev 4 ปีที่แล้ว

    very nice!!

  • @punjabiwithjasman135
    @punjabiwithjasman135 5 ปีที่แล้ว

    Hi sir ! Thanks for this great content.....
    One request can u please make a series on making a complete app with firebase as its backed

    • @ResoCoder
      @ResoCoder  5 ปีที่แล้ว +5

      It's in the process of creation 👨‍💻

    • @marcarch3872
      @marcarch3872 5 ปีที่แล้ว +1

      @@ResoCoder A Firebase video using Clean Code Arch will be awesome. Thanks for your effort is really appreciated

  • @sumitaggarwal1164
    @sumitaggarwal1164 4 ปีที่แล้ว

    please make a video on flutter app using mobx with moor

  • @karianpour
    @karianpour 5 ปีที่แล้ว +1

    Nice.
    Imagine that you want to persist the store. How would you do that, as you used the Future.fulfiled for storeState? Personally I did not like that idea, I like the store to be as simple and plain as possible.

  • @pedrosanchezroca181
    @pedrosanchezroca181 4 ปีที่แล้ว +1

    dont know if it is just me but I find this MobX way way way more complicated than Bloc....Bloc is just so nice and clean Evet --> Bloc --> State

  • @mrutyunjayagiri982
    @mrutyunjayagiri982 5 ปีที่แล้ว

    Hi. Please Make A Tutorial about Responsive Layout Like On Different Resolution and Size.

  • @mabialaemile8541
    @mabialaemile8541 5 ปีที่แล้ว

    I love your videos they're very nice :) . I'm trying to follow your path.... So I decided to make a website.... It's done ... But I would like to know... Where do you host your website ?

  • @vinothkumar-te6ui
    @vinothkumar-te6ui 5 ปีที่แล้ว

    MobX seems way more precise when compared to BLoC which is really helpful in long run. Can you compare both about their advantages and disadvantages?

    • @ResoCoder
      @ResoCoder  5 ปีที่แล้ว

      What do you mean by more precise?

    • @vinothkumar-te6ui
      @vinothkumar-te6ui 5 ปีที่แล้ว

      @@ResoCoder Number of lines required to achieve same thing looks like really less when compared to BLoC. Also it becomes complex when number of files (1 Event, 1 State and 1 BLoC per screen) increases in BLoC if the project size is huge

    • @ResoCoder
      @ResoCoder  5 ปีที่แล้ว +2

      @@vinothkumar-te6ui Yes, there's less boilerplate but I'd argue that there's also less straightforwardness. Bloc outputs *new* states while MobX just mutates state.

    • @vinothkumar-te6ui
      @vinothkumar-te6ui 5 ปีที่แล้ว

      @@ResoCoder Thanks for the clarification

  • @augmentos
    @augmentos 5 ปีที่แล้ว

    would love a min state managment lib like most core or bacon

  • @mrutyunjayagiri982
    @mrutyunjayagiri982 5 ปีที่แล้ว +1

    Bloc RxDart or Flutter_bloc or MobX(new for me). So Which You Will Recommend.

    • @ResoCoder
      @ResoCoder  5 ปีที่แล้ว +5

      I'd recommend flutter_bloc.

  • @venil82
    @venil82 5 ปีที่แล้ว

    How do you get those vertical lines in VScode?

  • @임창수-c7c
    @임창수-c7c 5 ปีที่แล้ว

    Would you cover flutter_screenutil plugin later? I want to know your thoguhts on it.

  • @rakaalrian5659
    @rakaalrian5659 5 ปีที่แล้ว

    is Mobx have something like Hydrated Bloc to save the current state?

  • @bascelik91
    @bascelik91 5 ปีที่แล้ว

    Why Mobx and states rebuilder are better than Bloc for state management? Can somebody give me a good example in order to understand it? Thanks :)

    • @d-apps2699
      @d-apps2699 5 ปีที่แล้ว +1

      I would like to know too.

    • @mallen1846
      @mallen1846 5 ปีที่แล้ว +2

      A lot less boiler plate from my experience

    • @d-apps2699
      @d-apps2699 5 ปีที่แล้ว

      @@mallen1846 Thank you. I will try mobx later. Maybe I'll change from bloc to mobx as my state manager

    • @mallen1846
      @mallen1846 5 ปีที่แล้ว +5

      @@d-apps2699 I have an average sized project I have been developing and I have struggled with architecture so over the past year I have recreated the project using just about every state management package out there, observable_state, flutter_bloc, scoped_model, redux and several others and today I find MobX and States Rebuilder to both very easy to implement and use. Currently I am leaning more towards MobX.

    • @d-apps2699
      @d-apps2699 5 ปีที่แล้ว +1

      @@mallen1846 Thanks for sharing your experience.

  • @thomasmabika7291
    @thomasmabika7291 5 ปีที่แล้ว +2

    check out states_rebuilder, might really be one of the best state management solution.

    • @ResoCoder
      @ResoCoder  5 ปีที่แล้ว

      Looks intriguing.

    • @riyadhzenasni387
      @riyadhzenasni387 5 ปีที่แล้ว

      @@ResoCoder I know states_rebuilder creator in case you want more insights

  • @MoaazEid
    @MoaazEid 5 ปีที่แล้ว

    if anyone can help?

  • @omicronx94
    @omicronx94 4 ปีที่แล้ว

    It's a good video but nowhere near the typical MobX usage in an app e.g. using lists and multiple screens.

  • @MoaazEid
    @MoaazEid 5 ปีที่แล้ว

    hello

  • @vrushangdesai2813
    @vrushangdesai2813 4 ปีที่แล้ว

    Hahah... so true , what about redux ?

  • @patricknasc
    @patricknasc 5 ปีที่แล้ว +1

    i dont no about yall, but I still prefer Provider or even BloC than this option. To much complexity for same result.

  • @sergeykodzha2621
    @sergeykodzha2621 2 ปีที่แล้ว

    for ones who are looking store template for Android Studio:
    import 'package:mobx/mobx.dart';
    part '$NAME$_store.g.dart';
    class $CNAME$Store extends _$CNAME$Store with _$$$CNAME$Store {}
    abstract class _$CNAME$Store with Store {
    @observable
    int value = 0;
    @action
    void increment() {
    value++;
    }
    }
    When adding set experssion for 'CNAME` var to `capitalize(underscoresToCamelCase(NAME))`