Skip to main content

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? (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

Luis Antonio Parrado avatar
Luis Antonio Parrado

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.

Modestas avatar

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

Huber Bruno-Nicolas avatar
Huber Bruno-Nicolas

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 .

Modestas avatar

Thanks, I've updated the lesson

Huber Bruno-Nicolas avatar
Huber Bruno-Nicolas

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

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.