Easiest way to understand to mobX state management in Flutter

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • In this, I have explored mobX state management in detail, and I have also implemented mobx in Flutter
    Github : github.com/the...

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

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

    Easiest Explanation on mobx i found on the Interenet.... Good Work Man

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

      Thank you man. Please subscribe the channel

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

    Stupid me didn't add the Observer widget and has been scratching my head since yesterday. Thanks for your videos.

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

    brother no matter how much we say thank you, it's all less...
    you are always there in the first video when I found any problem. if you observed closely most of the Indian students watch your video
    so from all the Indian students once again I would like to say thank you so much #never stop making flutter tutorial

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

      Love from Pakistan for all indians :)

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

    One of the best crash course on mobx, thank you

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

    I just started Flutter, but a long time desktop client server developer. This is the most straightforward example of any kind of real state management I have seen yet. Liked and Subscribed!!!

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

      Thank you. I appreciate :)

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

    This is the best video on MobX I've found

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

    You are perfect teacher

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

      Thank you. Please subscribe the channel.

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

    Mobx is so much more practical than BLOC.Tnx for explaining

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

      Thanks. If you like the video, please subscribe the channel

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

    Thanks for the video, i am your subscriber now..

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

    It's very helpful !!

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

    U deserve million subscriber...

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

    Nice one, Create a crud in mobx

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

      Thank you. Please subscribe the channel.

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

    Thank you, You are awseome

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

      Thank you. Please subscribe the channel.

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

    This is Gold! Thank you so much!

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

      Thank you. Please subscribe the channel.

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

    Big thumbs up deserved, big thumbs up given.

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

      Thank you. Please subscribe the channel.

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

    thank you for this video.

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

    nice tutorial, tnx!)

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

      Thank you. Please subscribe the channel.

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

      @@EasyApproach yeah, i did it)

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

    Commenting for better reach

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

    Do we have to run build runner command whenever we add new observable or action ?

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

      good question.
      I found this in the Mobx.dart documentation:
      Stay on watch
      If you are making changes to the store and want to generate *.g.dart files automatically, you can use the following command:
      flutter packages pub run build_runner watch
      References:
      mobx.netlify.app/getting-started

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

    Good job!

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

    What about reaction? we dont have to define it?

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

    Great work !!🔥

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

      Thanks 🔥

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

      please subscribe the channel!

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

      @@EasyApproach already subscribed !

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

    is that all that MOBX is?? or is there more??

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

    Nice. Can you please explain on how to make mobx as global store used by several pages. Thanks.

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

    Thanks for the video 😁. Please can you do this but with state management with firebase collection documents 😇

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

    Thanks for the video. Which do you like best? Provider, Mobx or BLoc?

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

      Both are good but mobx is relatively easier

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

      I am gonna make video on differences between different state managements. Subscribe the channel

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

    Nice video,

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

    please make one on redux with middleware

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

    Should make one on MODULAR as well.

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

    Thanks. Can you easily use mobx with a rest api (that is not a stream)? Maybe a video on that?

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

      Yes we can use. Thanks for the suggestion will make video on that :) subscribe the channel for notification

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

    awesome.. need real time example with some api call and states.

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

      Thanks will do. Please subscribe the channsl

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

    mobx is perfect!!

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

    Thank you

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

    Awesome thanks you❤️

  • @federico.magnani
    @federico.magnani 4 ปีที่แล้ว +1

    I don't get it. It seems like it has made things way more complicated than they need to be with the default setState() logic

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

      Setstate in long run becomes so horrific because you don't know on which places you wrote setState. So it becomes pretty messy and complex to manage state since state is available on different places, however, instead, mobx or any other state management may look complex initially but in long run, it makes your code more easy to manage since there is only one place where the state exist.

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

    Assalmulaikum . Sir I want to ask a question.I want to learn mobile application development . I have zero knowledge about that . I have little bit experience on web development using Asp.net . Some of my seniors suggest me to Learn flutter or react native because you will create apps for both Android and iOS using single codebase. Some suggest that start from native development using kotlin or Java for Android and Swift for iOS because you will stuck in messy code of widgets in flutter If you work on big projects and flutter is only good for interactive user interfaces .I realize that Dart syntax is pretty much simliar to c# or Java and I have good knowledge about c# including oop concepts . So please guide me either I learn flutter for mobile development or react native and what is the future of mobile development .

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

      i suggest Flutter! you can built for: Android, Apple (iphone and MAC!), WEB, Windows (in future i think), Linux

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

      I prefer flutter because it's easy, great, power, and owned by google ;)

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

      Pick flutter, I code in mainly python and have on experience in either dart or flutter be4 I start but my knowledge on python oop made learning dart and flutter very easy and now I can actually code in flutter (I won't say an a pro or very good at it but I can the average stuff).

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

    Hi, great video,
    Thanks a lot for posting it,
    I am still a bit confused on why at 15:08 we have used _$counterStore; , where is that coming from?

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

      This is some boilerplate code that have to write in order to generate code corresponding to out store class. Basically it is requirement from mobx code generator package.

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

    mobX vs provider? which is better?

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

    can you create an video like that for Provider state managment? please

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

      Sure i will make

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

      Obs

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

      Provider isn't used for state management.

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

      @@mars3142 in inherit widgets, so you can use!!! And is very comfortable!!!
      Try it!!!! Trust in me :)

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

    I've shared on my LinkedIn.

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

      Thank you :) Please subscribe the channel

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

    import 'package:mobx/mobx.dart';
    class genderState{
    Observable male = Observable(true);

    Action change;

    gender_changer(bool value){
    change = Action((){
    male.value = value;
    });
    }
    }
    Can anyone tell me how I can call this action?

  • @АлександрИванов-ю8с8г
    @АлександрИванов-ю8с8г 4 ปีที่แล้ว

    Hi dear. Make something about HIVE please.

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

      Soon. Please subcribe the channel :)

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

    mobX vs BLOC? mobX seems more natural to me.

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

      Mobx is easy as compared to bloc. Bloc is sometimes super complex.