Top 10 State Management for Flutter
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
Fun Fact: Riverpod is an anagram of the Provider
Riverpod is an upgraded version of provider
🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯
Really good video, thanks for explaining all the pros and cons
Great overview of State management offer. Thanks
This video really helpful thanks for the explanation 🌹
Well explained Tadas 😊👍
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.
I haven't seen riverpod yet but the rest I agree a 100 percent.
Great video 👍
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
Thanks for this video
I've used bloc and it really is a lot of boiler plate. I might try riverpod.
Getx is really simple and is more than just state management. It is becoming a framework with navigation, translation and much more.
thank you :)
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.
That's very true! But most of these are very popular, so I think there are multiple people supporting it
nice name
This is exactly my thought. My choice is a package suitable for the project and the long-term support of the package author.
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
What is stacked package?
The KISS principle, always.
Great video.. Could you please provide a video how to integrate google fit in flutter?
Tadas : there is no best one
Getx: hold my 🍻
YUH YUH YUH YUH YUH we love state management
I haven't used bloc of any of the project... Still using getx and some time redux.
How about Velocity X?
What is the recommended state management when using flutter_graphql ?
I would look into amplify_flutter
Ohh my mind, confuse to choose, provider I use now
States_Rebuilder makes life simpler.
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.
Which one would you say is most used by big companies.
I say BLOC
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 ?
I haven't been a sysadmin, but I do have a white bmw. How did you know?
Don't understand rxdart is state management or something that we use instead of streams in fluttter
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.
i think setState must be used on small apps. On big apps it will slow down
Hi what about Cubit?
I haven't used it, but I have heard good things
Provider .
getX s2
Nice list. I would like to just point out that get_it is not a state management, it's a service locator.
So is Provider.
Ah crap you are right. But they are so often used for state management i forget
I think the same about getx.
❤️
only used setState & Provider didn't touch others yet
why?
setState({})
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
GetX is the BEST!
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 ?
guess you deleted my post because it came off like advertisement, wasn't my state management library though.
I didn’t delete anything! Maybe CZcams automatically did it. What was your comment about?
@@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
@@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
@@tadaspetra no worries
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.
Getx is the best and easy choice
is you use getx in you're projects? i am so struggle in bloc😑