The HomeCubit is the second Cubit that needs to be implemented in our e-commerce app. It helps us accomplish the following tasks:

  • Retrieve the list of categories and products from the products repository.

  • Change pages using the BottomNavigationBar in the home screen, and render the correct AppBar and body of the page.

The available bodies are declared in lib\screens\home_screen\home_screen.dart:

Get hands-on with 1200+ tech skills courses.