• Flutter - Tutorials

    Flutter Counter – Bloc Pattern

    In this article, we are going to build counter app using bloc pattern. First of all create the new project called flutter_counter. Now open pubspec.yaml file and replace with below code. And then install all of our dependencies by clicking on flutter packages get Project Structure The application uses a feature driven directory structure. This type of project structures enables us to scale the project by having self contained feature. This application is only have single feature but another application may have multiple complex features. BlockObserver To observe all state changes in the application we have to create BlocObserver ab…