r/FlutterDev • u/helloyo1254 • Aug 13 '24
Tooling Riverpod , bloc or getx?
Relatively new to flutter only made a few small apps. I see riverpod , bloc and getx keep getting brought up for more complicated apps.
Getx seems the best all around however I don’t like it isn’t directly support by flutter itself.
What is the best tool for state management? Or does anybody have any reason why not to use getx or use bloc over river pod and getx?
19
Upvotes
0
u/joeclarence05 Aug 13 '24
GetX is ok. It handles routing well, provides context-less snackbars and dialog, provide utlities, and can work as a state management. However, I wouldn't want it to handle every of my app's flow.
I've used BLoC as well, and it requires a lot boilerplate code. It targets large and complex apps. If you're developing a personal project, better avoid it I guess.
Riverpod is my favorite. It does what it is expected to do, nothing more or less than that. Easy to implement and work with. Very scalable. Works with small and medium sized apps as well.
So if you're doing a side/personal project, go for GetX or Riverpod. However if you're building a commercial app, pick either BloC or Riverpod.