From 14e75ec890c5134aa9a7e86eca06e68e58002669 Mon Sep 17 00:00:00 2001 From: dreautall <109872040+dreautall@users.noreply.github.com> Date: Sat, 22 Jun 2024 15:42:10 +0000 Subject: [PATCH] do not use apiv2 calls for charts for now fallback for daily summary chart, removed net worth chart. fixes #405 (for now) --- lib/pages/home/main.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/pages/home/main.dart b/lib/pages/home/main.dart index b8ecb76f..ebb89829 100644 --- a/lib/pages/home/main.dart +++ b/lib/pages/home/main.dart @@ -76,7 +76,9 @@ class _HomeMainState extends State lastDaysIncome.clear(); // With a new API the number of API calls is reduced from 14 to 2 - if (context.read().apiVersion! >= Version(2, 0, 7)) { + // :TODO: currently there is a bug in the APIv2 call, disabled this for now.. + if (false && + context.read().apiVersion! >= Version(2, 0, 7)) { final FireflyIiiV2 apiV2 = context.read().apiV2; final List accounts = []; @@ -775,7 +777,9 @@ class _HomeMainState extends State ), ), const SizedBox(height: 8), - if (context.read().apiVersion! >= Version(2, 0, 7)) + // :TODO: currently there is a bug in the APIv2 call, disabled this for now.. + if (false && + context.read().apiVersion! >= Version(2, 0, 7)) ChartCard( title: S.of(context).homeMainChartNetWorthTitle, future: _fetchBalance(), @@ -923,7 +927,8 @@ class _HomeMainState extends State liabilities: lastMonthsLiabilities, ), ), - if (context.read().apiVersion! >= Version(2, 0, 7)) + if (false && + context.read().apiVersion! >= Version(2, 0, 7)) const SizedBox(height: 8), AnimatedHeight( child: FutureBuilder>(