Member-only story
Building E-commerce app with Flutter bloc pattern-1
Flutter bloc + Firebase
Hi folks! In this project, we shall learn how we can build a shopping app using flutter. It's now a very common thing in today's world to order clothes, food, grocery, and other stuff from an e-commerce app for example amazon, Flipkart, zomato, etc. As tech-savvy learners, we must learn application development, and at least once we must try to build a basic prototype of how all these app functions and if we have any other innovative idea for startup we must be capable to build an app or website so that we can bring our idea to real life. So In this app, we will learn how we can build a shopping app, we will use the Bloc library to manage the state of the app and firebase as a backend. There will be four screens in this app i.e. product screen, cart screen, order screen, product upload screen.
What is Bloc?
Bloc stands for Business Logic Component. It provides us with the cleanest, scalable, and reusable architecture for managing the state of flutter applications. It is a state management helper. Bloc is a library that contains a bunch of widgets that are very handy for state management. Bloc library allows us to separate the business logic from UI. It takes the events as the input and yields state as the output. Bloc function using the streams, it takes the stream of events…