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