Skip to main content

Command Palette

Search for a command to run...

Fake store API with Bloc Pattern

Published
1 min read
Fake store API with Bloc Pattern
D

I am a Python, Linux, and Network Security Enthusiast. I enjoy using code and Open Source Software to improve efficiency for businesses. I am currently learning Flutter as my UI/UX language.

When I was starting Flutter, I thought writing widgets was all I needed to get things running. Later, I realized I needed a way to manage the state of my data and also handle the different application events. That's how I started doing research on State management in a flutter. Being a newbie, I had a difficult time figuring out which mechanism to use given the several methods suggested online. Fortunately, I settled on Bloc Pattern. Bloc allows a developer to define classes that can listen to events to trigger state changes.

I have made a project on Github that interacts with the Fake Store API using Bloc Pattern. Check it out in the repository. Leave any comments and suggestions about the project. Until next time.

Cheers!!