Member-only story

Flutter BLoC and Firebase

Fast, fun and flexible

Daniel Llewellyn
7 min readApr 9, 2020

I’ve been a fan for a long time of Firebase in Android and iOS development, but as I’ve moved more and more to developing Flutter, Firebase has shown itself to be even more useful than for native development — in particular, I’ve been using Firestore for dynamic content.

For those of you familiar with Firestore, feel free to skip this section.

Firestore

Firestore is a web based datastore, with mobile and web SDKs which, when used, are automatically updated as content is pushed to the store. What this means for me generating dynamic content, is that once I have integrated a screen into my application, the flutter UI updates automatically.

BLoC

I’ll admit to not having tried in depth many other flutter architectures, but BLoC is a very powerful and flexible architecture that I have used since I started developing flutter apps. In the last few months, I’ve been looking at a specific implementation of Bloc in this library — where previously I was writting my BLoCs using IoC for dependency injection, and rxdart for streams.

--

--

Responses (1)