Since our categories are currently hard-coded into the screen directly, we cannot update them without updating the code. This is not ideal, so let's fetch the categories from the API instead.
In this lesson, we will:
- Install HTTP package
- Create our Category Model
- Grant the necessary permissions to the API
- Fetch the categories from the API
Let's dive in!
Installing HTTP Package
Installing packages in Flutter...