added unit to pizza event page ingredient list

This commit is contained in:
broodjeaap89 2021-08-31 18:55:08 +02:00
parent b9a78665fa
commit 0f22e45b21

View file

@ -108,7 +108,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
return TableRow( return TableRow(
children: <TableCell>[ children: <TableCell>[
TableCell(child: Text(ingredient.name)), TableCell(child: Text(ingredient.name)),
TableCell(child: Text("${ingredient.getAbsoluteString(totalWeight)}")), TableCell(child: Text("${ingredient.getAbsoluteString(totalWeight)}${ingredient.unit}")),
TableCell(child: Center(child: Checkbox( TableCell(child: Center(child: Checkbox(
value: ingredient.bought, value: ingredient.bought,
onChanged: (bool? newValue) { onChanged: (bool? newValue) {