Add, update, and delete are all working for each item type!!
This commit is contained in:
@@ -34,6 +34,7 @@ class _HomePageState extends State<HomePage> {
|
||||
case 0:
|
||||
page = TrackedItemPage(
|
||||
assetsToLoad: DatabaseHelper.instance.getExpenses(),
|
||||
notifyParent: refresh,
|
||||
);
|
||||
dialog = TrackedItemInputDialog(
|
||||
notifyParent: refresh,
|
||||
@@ -43,6 +44,7 @@ class _HomePageState extends State<HomePage> {
|
||||
case 1:
|
||||
page = TrackedItemPage(
|
||||
assetsToLoad: DatabaseHelper.instance.getIncomes(),
|
||||
notifyParent: refresh,
|
||||
);
|
||||
dialog = TrackedItemInputDialog(
|
||||
notifyParent: refresh,
|
||||
@@ -52,6 +54,7 @@ class _HomePageState extends State<HomePage> {
|
||||
case 2:
|
||||
page = TrackedItemPage(
|
||||
assetsToLoad: DatabaseHelper.instance.getAssets(),
|
||||
notifyParent: refresh,
|
||||
);
|
||||
dialog = TrackedItemInputDialog(
|
||||
notifyParent: refresh,
|
||||
|
||||
Reference in New Issue
Block a user