Mikael Alfredsson
06/09/2020, 2:52 PMZach Klippenstein (he/him) [MOD]
06/09/2020, 3:30 PMMikael Alfredsson
06/10/2020, 8:18 AMColumn {
listOf(
Text("Line1"),
Text("Line2")
).map { Box(modifier = Modifier.padding(12.dp)) { it } }
}
Zach Klippenstein (he/him) [MOD]
06/10/2020, 2:46 PMText
, do not return anything. However, some other options are:
- You could make your list contain composable functions (eg { Text() }
, and then call those functions from your wrapper.
- You can write a custom Layout
that modifies the measurement/placement of all its children. This is a more general version of the Column
-specific arrangement one.Mikael Alfredsson
06/10/2020, 2:48 PMZach Klippenstein (he/him) [MOD]
06/10/2020, 2:49 PMMikael Alfredsson
06/10/2020, 2:49 PMZach Klippenstein (he/him) [MOD]
06/10/2020, 3:24 PM