Allow the Income and Asset pages to start using the generic item creation page.
This commit is contained in:
parent
778b4e2f39
commit
7947d64b3b
@ -40,9 +40,21 @@ class _HomePageState extends State<HomePage> {
|
|||||||
type: ItemType.expense,
|
type: ItemType.expense,
|
||||||
);
|
);
|
||||||
case 1:
|
case 1:
|
||||||
page = Placeholder();
|
page = TrackedItemPage(
|
||||||
|
assetsToLoad: DatabaseHelper.instance.getIncomes(),
|
||||||
|
);
|
||||||
|
dialog = TrackedItemInputDialog(
|
||||||
|
notifyParent: refresh,
|
||||||
|
type: ItemType.income,
|
||||||
|
);
|
||||||
case 2:
|
case 2:
|
||||||
page = Placeholder();
|
page = TrackedItemPage(
|
||||||
|
assetsToLoad: DatabaseHelper.instance.getAssets(),
|
||||||
|
);
|
||||||
|
dialog = TrackedItemInputDialog(
|
||||||
|
notifyParent: refresh,
|
||||||
|
type: ItemType.asset,
|
||||||
|
);
|
||||||
case 3:
|
case 3:
|
||||||
page = ProjectionPage();
|
page = ProjectionPage();
|
||||||
case 4:
|
case 4:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user