Fix code warnings by using Description variable and temporarily assuming that Assets are a RecurringTrackedType.
This commit is contained in:
parent
98e511056c
commit
064884dc07
@ -58,12 +58,12 @@ class _ExpensePageState extends State<ExpensePage> {
|
||||
// if the Widgets are expecting RecurringTrackedType, but we
|
||||
// need to be using Frequency? Change to only have one abstract
|
||||
// class and make it nully again? Hmmm...
|
||||
if (curr is RecurringTrackedType) {
|
||||
//if (curr is RecurringTrackedType && curr.frequency != null) {
|
||||
itemAmount =
|
||||
"${curr.amount.toStringAsFixed(2)} ${curr.frequency.title}";
|
||||
} else {
|
||||
/*} else {
|
||||
itemAmount = curr.amount.toStringAsFixed(2);
|
||||
}
|
||||
}*/
|
||||
final String itemDescription = curr.description;
|
||||
|
||||
final double itemDayAmount =
|
||||
@ -180,7 +180,7 @@ class _ExpensePageState extends State<ExpensePage> {
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Text(
|
||||
curr.description,
|
||||
itemDescription,
|
||||
style: TextStyle(
|
||||
fontSize: 12.0,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user