Project Structure
Learn about the structure of the project and how different elements work together to create the application.
We'll cover the following
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 when it comes to our app.
The first path is the path that shows the application data that we get from SWAPI. This path consists of the home screen, the category screen, and the details screen.
Home screen: This displays the various categories that users can explore.
Category screen: This displays the items within the category that the user selects.
Details screen: This provides more information about an item if the user clicks it while in the category screen.
These screens use the SWAPI service to get the data they’ll show. Inside the category screen and details screen, there will be the option to add an item to likes or remove it from likes. That’s why these two screens use the likes_bloc
.
Get hands-on with 1200+ tech skills courses.