add ListView Summs Liter Price per Year
This commit is contained in:
@@ -15,9 +15,6 @@ class MyListTileItem extends StatelessWidget {
|
||||
|
||||
Widget _myListItem(BuildContext context) {
|
||||
var textColor = Colors.orange.shade400;
|
||||
var summePrice =
|
||||
(double.parse(listItem.liters) * double.parse(listItem.pricePerLiter))
|
||||
.toStringAsFixed(2);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Column(
|
||||
@@ -75,7 +72,7 @@ class MyListTileItem extends StatelessWidget {
|
||||
children: [
|
||||
Icon(Icons.price_change),
|
||||
SizedBox(width: 10),
|
||||
Text('$summePrice €', style: TextStyle(color: textColor, fontSize: 25)),
|
||||
Text('${listItem.szSummePreis} €', style: TextStyle(color: textColor, fontSize: 25)),
|
||||
],
|
||||
),
|
||||
Divider(thickness: 1, color: Colors.black),
|
||||
|
||||
Reference in New Issue
Block a user