“Architecture Components” - Flutter ft. RESTful API, SQLite, & Dependency Injection

Alfonso Cejudo
Jet Set Digital
Published in
8 min readJul 11, 2019

--

If you’re like me, then you’ve read myriad examples and tutorials on Flutter and all the individual pieces needed to make a real, publishable app (some assembly required). And while we all now know how to display a counter that can not just increment but also decrement with the power of modern technology, we’re not really sure if that fully realizes the client’s vision of an app that does things. But I’m using BLoC pattern! Why u not impressed?!? Clients, amirite.

So it’s time to put it all together. We all already know about the popular patterns the cool kids are using in the streets: MVC, MVP, MVVM, Eminem, MGM Grand Hotel and Casino, etc. But in terms of app architecture that’s not just testable and scalable but also allows for seamless collaboration with multiple developers in a team, I’ve found the most success by building on top of a concrete example found in the Google Samples repo: Github Browser Sample. After I decided to pick up Flutter and started learning about streams and awaits and such, I quickly found myself hoping to play around with a comparably fleshed out starter pack for Flutter, to no avail. So I went ahead and made the initial version of what can hopefully be a useful one.

--

--

Alfonso Cejudo
Jet Set Digital

developist. humorer. cash him inside making iOS and Android apps.