If text is child of Card or Box.
Card(modifier = Modifier.fillMaxWidth().padding(8.dp)) { Row { Image(data = uri) Text( modifier = Modifier.padding(8.dp).align(Alignment.CenterVertically), text = "Center this text vertically" ) }}
Else
Row(verticalAlignment = Alignment.CenterVertically) { Button(onClick = { }) { Text(text = "Click Me") } Text( modifier = Modifier.padding(8.dp), text = "Hello )}