Add estimate tildes.
This commit is contained in:
parent
064884dc07
commit
991eea4d54
@ -77,11 +77,19 @@ class SummaryCardForTotals extends StatelessWidget {
|
|||||||
monthlyTotal += e.calcComparableAmountYearly() / 12;
|
monthlyTotal += e.calcComparableAmountYearly() / 12;
|
||||||
yearlyTotal += e.calcComparableAmountYearly();
|
yearlyTotal += e.calcComparableAmountYearly();
|
||||||
}
|
}
|
||||||
|
String dailyEstimate =
|
||||||
|
dailyTotal.toStringAsFixed(3).endsWith("0") ? "" : "~",
|
||||||
|
monthlyEstimate =
|
||||||
|
monthlyTotal.toStringAsFixed(3).endsWith("0") ? "" : "~",
|
||||||
|
yearlyEstimate =
|
||||||
|
yearlyTotal.toStringAsFixed(3).endsWith("0") ? "" : "~";
|
||||||
return SummaryCard(
|
return SummaryCard(
|
||||||
name: "$summaryTypeLabel Totals",
|
name: "$summaryTypeLabel Totals",
|
||||||
leftText: "${dailyTotal.toStringAsFixed(2)} Daily",
|
leftText: "$dailyEstimate${dailyTotal.toStringAsFixed(2)} Daily",
|
||||||
middleText: "${monthlyTotal.toStringAsFixed(2)} Monthly",
|
middleText:
|
||||||
rightText: "${yearlyTotal.toStringAsFixed(2)} Yearly",
|
"$monthlyEstimate${monthlyTotal.toStringAsFixed(2)} Monthly",
|
||||||
|
rightText:
|
||||||
|
"$yearlyEstimate${yearlyTotal.toStringAsFixed(2)} Yearly",
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user