Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Deleting Categories

Premium
3 min read

After all code updates, it's time to add another feature - Deletion of Categories:


Adding API Method

Let's start by adding our API call to...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 14 min)

You also get:

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

Already a member? Login here

Comments & Discussion

LA
Luis Antonio Parrado ✓ Link copied!

I've noticed that the category list isn't refreshed when a new category is inserted outside the app. I've tried using tinker, but even if I navigate back to where the api is called again, could it have something to do with the cache? In order for the new entry to appear, I had to stop and restart debugging.

M
Modestas ✓ Link copied!

Could you add the tinker code you ran? It should work if you switch from categories to transactions and back.

HB
Huber Bruno-Nicolas ✓ Link copied!

Hi, In this lesson you point the file to update as /lib/widgets/categories_list.dart But in the GIthub commit it is about /lib/screens/categories/categories_list.dart .

M
Modestas ✓ Link copied!

Thanks, I've updated the lesson

HB
Huber Bruno-Nicolas ✓ Link copied!

There is still a small missing string, you updated to : lib/screens/categories_list.dart the correct path is lib/screens/categories/categories_list.dart

M
Modestas ✓ Link copied!

Fixed :)