Home Cubit
Learn how to use Cubits to conditionally show different widgets in your app.
We'll cover the following
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 correctAppBar
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.