fix: graph bad state error
This commit is contained in:
parent
1ec32168e5
commit
de2791a60d
1 changed files with 10 additions and 8 deletions
|
@ -186,14 +186,16 @@ class ExpensesLineChart extends StatelessWidget {
|
||||||
topTitles: const AxisTitles(),
|
topTitles: const AxisTitles(),
|
||||||
leftTitles: AxisTitles(
|
leftTitles: AxisTitles(
|
||||||
sideTitles: SideTitles(
|
sideTitles: SideTitles(
|
||||||
reservedSize: (NumberFormat.compact()
|
reservedSize: ((expenseDataSorted.isNotEmpty &&
|
||||||
.format(expenseDataSorted.last)
|
NumberFormat.compact(locale: locale)
|
||||||
.length >=
|
.format(expenseDataSorted.last)
|
||||||
5 ||
|
.length >=
|
||||||
NumberFormat.compact()
|
5) ||
|
||||||
.format(incomeDataSorted.last)
|
(incomeDataSorted.isNotEmpty &&
|
||||||
.length >=
|
NumberFormat.compact(locale: locale)
|
||||||
5)
|
.format(incomeDataSorted.last)
|
||||||
|
.length >=
|
||||||
|
5))
|
||||||
? 50
|
? 50
|
||||||
: 25,
|
: 25,
|
||||||
showTitles: true,
|
showTitles: true,
|
||||||
|
|
Loading…
Reference in a new issue