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? (30 h 41 min)

You also get:

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

Already a member? Login here

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.