Skip to main content

Editing Categories

Premium
6 min read

Now that we have our categories, we can work on the edit form:

This will show us how to implement the following:

  • A form into our screen
  • Basic validation
  • API call to update the category
  • Modal forms

Adding Edit Icon

First, we want to add an Icon Button to our List:

return ListTile(
title: Text(category.name),
trailing: IconButton(onPressed: () => print("Clicked edit"), icon: Icon(Icons.edit)),
);

This will add an edit icon to the right side...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

No comments yet…