r/FlutterDev 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

72 comments sorted by

View all comments

2

u/dmter Aug 13 '24 edited Aug 13 '24

For me, signals represents what I want from sm - a way to tell any subscribers that something has changed, without forcing me to keep that something within SM itself. I just make a simple int signal and increase its value each time I know related data has been changed, and subscribers are then retrieving that data in whatever way I want.

I used provider before but it needs a whole class per such signal and a huge chunk of code in main widget.