Search⌘ K

Project Structure

Understand the project structure of a Flutter BLoC Star Wars app by exploring its UI screens such as home, category, detail, and likes. Learn how services interact with the SWAPI API for data retrieval and storage, and see how the likes_bloc manages the business logic for liking items, ensuring persistent user preferences.

Our Star Wars project is made up of the following components:

  • UI screens: The screens that make up our app, including the home screen, the category screen, the details screen, and the likes screen.

  • Services: The services that have contact with SWAPI. This includes the SWAPI service and the storage service.

  • Likes BloC: The BLoC that manages the likes business logic.

So, let’s break down each component.

UI screens

We have two paths of action ...