Top 10 State Management for Flutter

Sdílet
Vložit
  • čas přidán 11. 03. 2021
  • The most common question I get is which State Management should I use. Although there is no right answer, In this video I cover my personal top choices
    Support Me
    ✦ GitHub Sponsors: github.com/sponsors/tadaspetra
    ✦ Patreon: / tadaspetra
    Reference Links
    Riverpod Package: riverpod.dev
    Riverpod Playlist: • Flutter Riverpod
    GetX Package: pub.dev/packages/get
    GetX Playlist: • Flutter GetX
    Provider Package: pub.dev/packages/provider
    Provider Playlist: • Flutter Provider
    States Rebuilder Package: pub.dev/packages/states_rebui...
    States Rebuilder Playlist: • States Rebuilder
    Bloc Package: bloclibrary.dev/#/
    Bloc Playlist: • Flutter Bloc
    Get_it Package: pub.dev/packages/get_it
    RxDart Package: pub.dev/packages/rxdart
    MobX Package: pub.dev/packages/mobx
    Redux Package: pub.dev/packages/redux
    Connect With Me
    ✦ My Website: tadaspetra.com
    ✦ Live Coding: / tadaspetra
    ✦ Twitter: / tadaspetra
    ✦ Chat on Discord: / discord
    ✦ Instagram: / tadaspetra
    I also do lots of Investing
    ✦ Up to $250 of Bitcoin: blockfi.com/?ref=ebe43fdc
    ✦ FREE stock: join.robinhood.com/tadasp2
    My Top 5 Books:
    ✦ Brave New World - Aldous Huxley: amzn.to/2JyaK96
    ✦ 1984 - George Orwell: amzn.to/3lmLzUk
    ✦ The Millionaire Fastlane - MJ Demarco: amzn.to/2ViGthn
    ✦ The 4-Hour Workweek - Timothy Ferriss: amzn.to/3mnypYD
    ✦ Homo Deus - Yuval Noah Harari: amzn.to/2VlFRYe
    CZcams Gear
    ✦ MacBook Pro 16 inch: amzn.to/3qe4MeF
    ✦ MX Master 3 Mouse: amzn.to/2VlkZQS
    ✦ Canon Rebel SL3: amzn.to/2ViIfPv
    ✦ Hiearcool USB Hub: amzn.to/3llsIsP
    ✦ iPad Pro 12.9 (3rd Generation): amzn.to/36kaVy0
    ✦ Apple Pencil (2nd Generation): amzn.to/2JoHy4y
    ✦ Yeti Microphone: amzn.to/37oRNOq
    ✦ Rode Boom Arm: amzn.to/3lnEKCb
    ✦ Blue Radius II Shock Mount: amzn.to/2JoIfea
    ✦ Blue RPop Filter: amzn.to/39rQSiZ
    ✦ Sony WH1000XM3: amzn.to/3moWgHh
    Thank you for watching!
    #Flutter #StateManagement #top10
  • Zábava

Komentáře • 75

  • @AchmadFahrurroziMaskur
    @AchmadFahrurroziMaskur Před 3 lety +75

    Fun Fact: Riverpod is an anagram of the Provider

    • @souravsuman636
      @souravsuman636 Před 3 lety +8

      Riverpod is an upgraded version of provider

    • @JBuchmann
      @JBuchmann Před rokem +1

      🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯

  • @jose-ze8dd
    @jose-ze8dd Před 2 lety

    Really good video, thanks for explaining all the pros and cons

  • @lbarq
    @lbarq Před 3 lety +3

    Great overview of State management offer. Thanks

  • @zaidaljamaly3905
    @zaidaljamaly3905 Před 2 lety

    This video really helpful thanks for the explanation 🌹

  • @arustresso
    @arustresso Před 3 lety

    Well explained Tadas 😊👍

  • @JBuchmann
    @JBuchmann Před rokem +2

    I've only used Provider (setState, IMO doesn't count as 'global state management') and so far I'm happy with it. Once you understand it, you only have remember a small amount of things. And also half of the work is done as a regular "class", which we should already be familiar with. However, I feel like I'm not using it to it's full potential because there's barely any documentation. So I assume once you know the small amount of documentation then you know all there is about it! Also the documentation shows conflicting ways to do some things and it's not clear why there is a difference, or which one to use. But I'm able to do what I need to do with very little code, so I'm happy.

  • @eronplay1015
    @eronplay1015 Před 3 lety +3

    I haven't seen riverpod yet but the rest I agree a 100 percent.

  • @Dan-rh8tn
    @Dan-rh8tn Před 3 lety

    Great video 👍

  • @CarlosCostaCarvalho
    @CarlosCostaCarvalho Před 3 lety +4

    Great video! Thanks for that. Can you please do a video about flavors ? How do you use dev, prod etc ? How to change flavors in vscode... that kind of thing

  • @shariar13877
    @shariar13877 Před 3 lety

    Thanks for this video

  • @justinandrewhampton
    @justinandrewhampton Před 3 lety +8

    I've used bloc and it really is a lot of boiler plate. I might try riverpod.

    • @jeremiasolavo1306
      @jeremiasolavo1306 Před 3 lety +4

      Getx is really simple and is more than just state management. It is becoming a framework with navigation, translation and much more.

  • @yousour5112
    @yousour5112 Před 3 lety

    thank you :)

  • @fruitfcker5351
    @fruitfcker5351 Před 3 lety +6

    One more thing to consider when choosing something is the person/company behind it. If it's a person, how long do you think that person going to support it? Companies are no different. If something isn't getting enough users, it will get canned.

    • @tadaspetra
      @tadaspetra  Před 3 lety +1

      That's very true! But most of these are very popular, so I think there are multiple people supporting it

    • @karolisabrutis6501
      @karolisabrutis6501 Před 3 lety +1

      nice name

    • @danghaile5528
      @danghaile5528 Před 3 lety

      This is exactly my thought. My choice is a package suitable for the project and the long-term support of the package author.

  • @MohammadAlbazel
    @MohammadAlbazel Před 2 lety +2

    I think the best one is stacked package. It completely separates the business logic from ui and it has a very easy syntax and natural

  • @jrheisler
    @jrheisler Před 3 lety +4

    The KISS principle, always.

  • @sumayyariyas8564
    @sumayyariyas8564 Před 3 lety +1

    Great video.. Could you please provide a video how to integrate google fit in flutter?

  • @Arch_Unique
    @Arch_Unique Před 2 lety +1

    Tadas : there is no best one
    Getx: hold my 🍻

  • @karolisabrutis6501
    @karolisabrutis6501 Před 3 lety

    YUH YUH YUH YUH YUH we love state management

  • @ankiy
    @ankiy Před 3 lety +1

    I haven't used bloc of any of the project... Still using getx and some time redux.

  • @sowmyancs
    @sowmyancs Před 3 lety +1

    How about Velocity X?

  • @SreekumarMenonPhotography

    What is the recommended state management when using flutter_graphql ?

    • @tadaspetra
      @tadaspetra  Před 3 lety

      I would look into amplify_flutter

  • @mazudhafiz1778
    @mazudhafiz1778 Před 2 lety

    Ohh my mind, confuse to choose, provider I use now

  • @JETLAI123
    @JETLAI123 Před 3 lety +3

    States_Rebuilder makes life simpler.

  • @mallen1846
    @mallen1846 Před 3 lety +3

    I do think that if you are looking for a job there are preferred packages that companies are using that they want devs to have experience with.

    • @viditkhanna3721
      @viditkhanna3721 Před 2 lety +2

      Which one would you say is most used by big companies.
      I say BLOC

  • @vahaggrigoruyan7228
    @vahaggrigoruyan7228 Před rokem

    Hey there bro i got only 2 questions
    WHere you been a System administrator in some company?
    Did you got a white Bmw while working ?

    • @tadaspetra
      @tadaspetra  Před rokem

      I haven't been a sysadmin, but I do have a white bmw. How did you know?

  • @user-tz3sd3sd6d
    @user-tz3sd3sd6d Před 2 lety

    Don't understand rxdart is state management or something that we use instead of streams in fluttter

    • @JBuchmann
      @JBuchmann Před rokem

      I'm not sure, but it may be similar to RxJS for basic state management in Angular. So there, you have something called Behavior / BehaviorSubjects. You send data to them from anywhere in the application. Then you can "subscribe" to the Behavior / BehaviorSubjects from anywhere in the application to get the latest data. The data comes in as "streams", and when subscribed you will automatically get the latest values when they come in. I guess RxDart have similar concepts, but the syntax is different.

  • @proob10
    @proob10 Před 2 lety

    i think setState must be used on small apps. On big apps it will slow down

  • @Abdukhalilov
    @Abdukhalilov Před 3 lety

    Hi what about Cubit?

    • @tadaspetra
      @tadaspetra  Před 3 lety

      I haven't used it, but I have heard good things

  • @freakout6764
    @freakout6764 Před 3 lety +2

    Provider .

  • @d-apps2699
    @d-apps2699 Před 3 lety

    getX s2

  •  Před 3 lety +3

    Nice list. I would like to just point out that get_it is not a state management, it's a service locator.

    •  Před 3 lety +1

      So is Provider.

    • @tadaspetra
      @tadaspetra  Před 3 lety +2

      Ah crap you are right. But they are so often used for state management i forget

    • @viditkhanna3721
      @viditkhanna3721 Před 2 lety

      I think the same about getx.

  • @aminelahrim8142
    @aminelahrim8142 Před 3 lety

    ❤️

  • @benampouala
    @benampouala Před 2 lety

    only used setState & Provider didn't touch others yet

  • @Somens8Dworld
    @Somens8Dworld Před 2 měsíci

    setState({})

  • @muhammadyusoffjamaluddin

    Can you make an update for this video? Since the packages have Null Safety and other bunch of updates.
    BTW make it Top 10 Flutter 3.0 State Management

  • @mrgor4505
    @mrgor4505 Před rokem

    GetX is the BEST!

  • @Nexus9997
    @Nexus9997 Před 2 lety +1

    I will soon get into flutter.
    Im coming from Vue with Vuex, then React with redux, when I see these Im like "wow thats another world again"
    The biggest struggles I had with vuex and redux was the relations between entities.
    Sometimes I was wondering why there wasnt any state management working like ORMs
    What about flutter ?

  • @g4mrplays
    @g4mrplays Před 3 lety

    guess you deleted my post because it came off like advertisement, wasn't my state management library though.

    • @tadaspetra
      @tadaspetra  Před 3 lety +1

      I didn’t delete anything! Maybe CZcams automatically did it. What was your comment about?

    • @g4mrplays
      @g4mrplays Před 3 lety

      @@tadaspetra it was mentioning momentum state management, nobody really speaks on it. And that makes sense, thought I'd clarify that isn't my library. It's made by a single person though which is impressive

    • @tadaspetra
      @tadaspetra  Před 3 lety

      @@g4mrplays I've heard of momentum, I personally haven't tried it. I have heard good things about it though. I promise I didn't delete the comment :), maybe CZcams had some auto delete I don't know

    • @g4mrplays
      @g4mrplays Před 3 lety

      @@tadaspetra no worries

  • @Alexander-qz6px
    @Alexander-qz6px Před 2 lety +1

    Too superficial, there are packages, and they are good .... or use set state. So you learnt nothing? Pro Con, what for what, in depth, ... there is no point in making a video like this, I don't get it. Just Google state management for flutter, you get better lists. Sorry.

  • @mohamedelyamani7845
    @mohamedelyamani7845 Před 2 lety +1

    Getx is the best and easy choice