Skip to content

Commit

Permalink
Deleting a category will also delete its payments now
Browse files Browse the repository at this point in the history
  • Loading branch information
xMadKing committed Dec 27, 2023
1 parent a5a8520 commit f0d670e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,22 @@ However, the main gist of it is:
## Packages & Tools Used

sqflite: https://pub.dev/packages/sqflite

pie_cart: https://pub.dev/packages/pie_chart

fl_chart: https://pub.dev/packages/fl_chart

graphic: https://pub.dev/packages/graphic

shared_preferences: https://pub.dev/packages/shared_preferences

path_provider: https://pub.dev/packages/path_provider

path: https://pub.dev/packages/path

flutter_svg: https://pub.dev/packages/flutter_svg

quiver: https://pub.dev/packages/quiver

awesome_notifications: https://pub.dev/packages/awesome_notifications

4 changes: 4 additions & 0 deletions lib/widgets/editablebudgetcat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ class _EditableBudgetCat extends State<EditableBudgetCat> {
'category',
widget.categoryID
);
await database.deleteFromTable(
'categoryID',
'payment',
widget.categoryID);
setState(() {
deleted = true;
});
Expand Down

0 comments on commit f0d670e

Please sign in to comment.