Which one should we choose? Flutter state management explained

preview_player
Показать описание
I studied both the packages in detail and made a comparison video to understand which one is better state management tool with Flutter.

Chapters 👇🏼
0:00 - Introduction
0:28 - Size comparison
4:05 - Performance comparison
11:15 - Code comparison

If you like my work

Join this channel to get access to perks:

Gears ========

#CodeX
Connect with me on social media:
Рекомендации по теме
Комментарии
Автор

I just published a financial application developed with GetX. I don't feel any issues with GetX till now.

devio
Автор

I have used Getx more often in commercial projects as it is easy to understand and write code once you get use to it due to its easy structure

pranavkhote
Автор

Awesome content. These internal details are so helpful. Thanks a lot.

faizandarwesh
Автор

If someone only uses Getx then he will definitely forget about how flutter actually works behind the code, like how context is passed and when you're using Getx it's basically like moving to different mini framework inside the app itself. I recommend switching between bloc, riverpod, getx

vibhor
Автор

I'm totally sold on GetX, my only concern is the same of some others here: maintenance of the the package in the long run. I guess the only way to ensure this is to have more and more contributions from the community.

jaimepremy
Автор

The controller is tight to a screen means the Business logic is not separate from the View. Better to state that when needing a reactive variable is needed you have to find the controller which was created on another screen when needed on more than one screen.

hoekbrwr
Автор

Great video. I went into it liking Provider but came out liking Getx. The last segment showing the code side by side was more important and should have been weighted greater. I think for that Getx should've got 2 points. Just as you said, having a controller for each page makes coding much easier.

buck-johnson
Автор

Hi...

I'm using getx from long time and beginner also to flutter . But i while surfing on internet i read some articles about state management. The flutter community and industry level companies are prefer to use bloc package for state management.

1. Why they not prefer to use getx ?.
2. Why they prefer bloc ?
3. Which is good for next carrier.

💕 from india.

sharath-b-naik
Автор

When to use Sql vs NoSql database. Everywhere its told that use SQL database when you have structured data. But when building any app, most of the time data are related to each other. So in that case as a beginner I get confused which to use when and why ?

rahulagarwal
Автор

I use getx in all my projects. I'm concerned though that with no updates in 3 months, and the beta now 9 days old... Btw, one of my main projects can't recompile with the latest flutter... It does make one worry.

jrheisler
Автор

Hi when we need nested navigation, so i case i develop Ecommerce for web and bobile?

mohamdjamal
Автор

I have applied Riverpod in a project. It is very flexible. but sometimes a provider depends on another one is not easy to understand (e.g. FutureProvider will depend on some StateProvider for API calling). And we will have to define global providers for each and every action, this can be a Drawback. But Overall it reduces so much boiler plate code. I am in favour of it.
But I don't have experience with GetX, so cannt say anything.

ajaykotiyal
Автор

Should using GetX create issues with iOS simulator? Not sure if I ran into issues that was connected to GetX.

wryltxw
Автор

Thanks for the video. ❤️ From Bangladesh

nthonyproblgomez
Автор

Can you benchmark riverpod against redux?

kjm
Автор

hey ...i am bit confused. with state management, which to choose as i am beginner ...do i need to learn all state management to get a a job? or just one? & expecting suggestion from flutter community

ai_malllu
Автор

Hey if I use Getx and fluent_UI, I wouldn’t use GetMaterialApp right? Just use it for state management not routing/utils?

chrisodonnell
Автор

I have to say this, Provider, Riverpod or Bloc would be faster than GETX because flutter by default is optimized to use InheritedWidget.

In the documentation of inheritFromWidgetOfExtactType "Calling this method is O(1) with a small constant factor", but it wouldn't be noticeable in small app.


One more thing is that you can use ChangeNotifier instead of StateNotifier if you want to use something like MVC architecture. other than the video is great, both are good solutions and every solution have some downsides.

mada
Автор

which is better for ecommerce app development getx or provider or riverpod or Bloc ?

arunflik
Автор

Hey Afsal. Make a Getx Controller in separated package please
it looks very nice for managing state option

ФирузВорисов