Display ingredient notes (#182)

* Display ingredient note

* Add changelog

* Update README.md
This commit is contained in:
Kirill Kamakin
2023-11-13 20:09:34 +01:00
committed by GitHub
parent 3d0cf8b902
commit 5408329604
5 changed files with 23 additions and 11 deletions

View File

@@ -92,11 +92,21 @@ private fun IngredientListItem(
onCheckedChange = { isChecked = it },
)
Text(
text = item.display,
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurface,
)
Column {
Text(
text = item.display,
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurface,
)
if (item.note.isNotBlank()) {
Text(
text = item.note,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
}
}
}