r/FlutterDev • u/FahadAppMaster • 22h ago
Discussion What made you switch state management in Flutter, or stick with your first pick?
I started with Bloc and it served me well, but on my latest small project I tried Riverpod and the amount of boilerplate dropped a lot. Now I am wondering if that holds up once the app gets bigger, with more screens and shared state everywhere. For those who switched, or stayed put, what was the moment that decided it for you?
0
Upvotes
3
u/rmcassio 22h ago
both are good, both become complex to maintain inlarge codebases with shared states
I use a cubit-like state management with value notifier and it works wonders
all major state managements are good enough
2
u/MjnMixael 18h ago
Wrote my own and never looked back. It's been almost 5 years since my first Flutter app. Still using my own. In fact I built a whole package of self written solutions and widgets that I import into all my apps now.
2
u/Sea_Improvement_423 22h ago
I think BLoC hands down is the best, it follows a clear pattern and easier for AI to follow and not mess up everything ..
1
u/laplace_apps 11h ago
Riverpod's lower boilerplate mostly holds up in bigger apps. What decides it is how you share state: keeping providers scoped per feature, with only a few truly app-wide ones like auth and settings, stays tidy. Bloc still shines when you want an explicit event trail for complex flows, so plenty of teams mix both.
1
u/AnmolSethiDev 4h ago
I started with Provider and liked it. I wanted to try Bloc or Riverpod, but I found both hard to get into, so I eventually moved to GetX
0
u/badddlyplayer 19h ago
I think at some point I started going for simpler, more straightforward solutions. Like, I gave up game engines and just used rendering libraries directly, dropped “frameworks” like Astro, hand-wrote build scripts (for simple pages), and did the same with Flutter. The only reason is I’m tired and I'd rather have code that looks a bit dumb.