Member-only story
Your First State Solution, States ReBuilder
States Rebuilder is a nice and small widget-based-DI state solution that is easy to use for starting to learn flutter and is powerful enough for medium-sized Flutter apps. In this article, I will show you the basics in how to use states rebuilder to manage state in your flutter app.
What Is States ReBuilder
States Rebuilder was created by Mellati Fatah and the plugin is at:
https://pub.dev/packages/states_rebuilder
And it’s simply adding the dependency in your pubspec:
dependencies:states_rebuilder: ^4.3.0
here are sorts of variations of how to start implementing the models when using Widget-based-DIs. This time I am skipping using a listenable or notifier and just implementing a plain data class:
So now we are at our Domain Service Layer. If we were building a more robust flutter app accessing 3rd-party APIs online, then we would also be setting up repositories for the app service layer. Thus, our single domain…