4 ms·
I really want simple state management. Currently it's a hodge-podge of competing third party solutions, which for the new user is hard to choose from.
by ghjfrdghibt 2y ago
I really want simple state management. Currently it's a hodge-podge of competing third party solutions, which for the new user is hard to choose from.
- fngjdflmdflg 2y agoAgreed. Once macros are supported in dart, Flutter should officially endorse Riverpod as they did with provider. Either that or they need to create their own official or at least supported solution. I will note that for small to medium apps you can get away with just setState and callbacks. The thing I like most about Flutter even more than it's cross-platform is that you need almost no packages, and certainly no "kitchen sink" packages like is needed with webdev and node: react, axios express, ts, webpack, dotenv, babel, eslint etc. etc. etc. State management in Flutter is the one thing that gives me npm vibes which is why I simply do not use any state management packages for even medium state-complexity apps as I never want to deal with a bug that is core to my program that is not supported by the framework. It's completely ridiculous that they are still ignoring this problem.
- ghjfrdghibt 2y agoI chose dart/flutter for cross platform app development purely because it was better than having to decide between the ridiculous amount of webdev frameworks. And state management has that same feel for me. I tend to design local first apps so I've been looking at utilising sqlite as a global state manager and for local state setState. Even provider and rivepod can be confusing for a newbie like me especially if you don't need to sync with cloud.
- mdhb 2y agoThis just got launched in the last week or two but I think you might find it helpful https://docs.flutter.dev/app-architecture https://docs.flutter.dev/app-architecture