Exercise: Implementing a Search Feature
Explore how to implement a search feature within a Flutter app using the BLoC pattern. Learn to handle search events and update UI states by integrating with an external API, enhancing your skills in managing asynchronous data and user input.
We'll cover the following...
We'll cover the following...
Practicing on your own is the best way to learn and make concepts click in your head. In this lesson, you’ll practice the concepts you’ve learned by implementing a new feature to the Star Wars project: a search feature.
Problem statement
We want to add the search feature to the category screen to help the user find items easily.
To implement the search feature, you need to create a new SearchBloc. The events of this BLoC are ...