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
|
// if the Widgets are expecting RecurringTrackedType, but we
|
||||||
// need to be using Frequency? Change to only have one abstract
|
// need to be using Frequency? Change to only have one abstract
|
||||||
// class and make it nully again? Hmmm...
|
// class and make it nully again? Hmmm...
|
||||||
if (curr is RecurringTrackedType) {
|
//if (curr is RecurringTrackedType && curr.frequency != null) {
|
||||||
itemAmount =
|
itemAmount =
|
||||||
"${curr.amount.toStringAsFixed(2)} ${curr.frequency.title}";
|
"${curr.amount.toStringAsFixed(2)} ${curr.frequency.title}";
|
||||||
} else {
|
/*} else {
|
||||||
itemAmount = curr.amount.toStringAsFixed(2);
|
itemAmount = curr.amount.toStringAsFixed(2);
|
||||||
}
|
}*/
|
||||||
final String itemDescription = curr.description;
|
final String itemDescription = curr.description;
|
||||||
|
|
||||||
final double itemDayAmount =
|
final double itemDayAmount =
|
||||||
@ -180,7 +180,7 @@ class _ExpensePageState extends State<ExpensePage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
curr.description,
|
itemDescription,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12.0,
|
fontSize: 12.0,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user