Courses

Flutter 3 Mobile App with Laravel 12 API

First API Call - Categories List

You're reading a FREE PREVIEW of a PREMIUM course.

Link to the repository

[Only for premium members]

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...

The full lesson is only for Premium Members.
Want to access all 26 text lessons of this course? (116 min read)

You also get:

  • 77 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord