From 1b207c1ce6533809f7fe1817d169320ad870c02f Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 18 Jul 2019 16:47:58 +0100 Subject: [PATCH] save also, two exclamation marks have been added (very important) --- lib/common/apifunctions/get_graph_data.dart | 3 ++- lib/pages/receipt_page.dart | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common/apifunctions/get_graph_data.dart b/lib/common/apifunctions/get_graph_data.dart index 71ae7d6..6cabf2a 100644 --- a/lib/common/apifunctions/get_graph_data.dart +++ b/lib/common/apifunctions/get_graph_data.dart @@ -50,7 +50,8 @@ class GraphData { for (int i = 0; i < labels.length; i++) { print(DateTime.parse(labels[i])); - timeSeriesSpendList.add(new TimeSeriesSpend(data[i], DateTime.parse(labels[i]))); + timeSeriesSpendList.add(new TimeSeriesSpend(i, DateTime(i))); +// timeSeriesSpendList.add(new TimeSeriesSpend(data[i], DateTime.parse(labels[i]))); } return [ diff --git a/lib/pages/receipt_page.dart b/lib/pages/receipt_page.dart index 1dd800a..878a624 100644 --- a/lib/pages/receipt_page.dart +++ b/lib/pages/receipt_page.dart @@ -28,7 +28,7 @@ class ReceiptPageState extends State { final TextEditingController _amountController = TextEditingController(); final TextEditingController _essentialController = TextEditingController(); final TextEditingController _recurringController = TextEditingController(); - final TextEditingController _categoryController = TextEditingController(); // TODO: fix this + final TextEditingController _categoryController = TextEditingController(); // TODO: fix this!! final TextEditingController _orgController = TextEditingController(); final OrganizationController _organizationController = OrganizationController(); List _categoryDropDownItems = List();