Having a structured codebase can only help you with creating good, long-lasting apps. The problem is that proper architecture can come with a cost of writing a lot of boilerplate code, especially if you intend to write everything from scratch.

When it comes to the BLoC pattern for Flutter, in the previous tutorial you could see how to create BLoCs from scratch and I’d say it’s not something you want to be doing over and over again. It’s just too low level. Also, if you don’t know how to implement BLoCs from scratch, definitely check it out.

We need to move up the abstraction ladder so that we aren’t going to be dealing with Streams and Sinks directly. This can be done with a handy library about which you are going to learn in this tutorial.

?Get the code from this tutorial?

 

Icons made by Becris from www.flaticon.com is licensed by CC 3.0 BY

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter Developer at LeanCode and a developer educator, he is set on helping other people succeed in their Flutter app development career.

You may also like

Flutter UI Testing with Patrol

Flutter UI Testing with Patrol
  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    >