KotlinLeaner
07/29/2022, 1:57 PMColumn(
modifier = Modifier
.fillMaxSize(),
) {
val options = getOptions()
options.forEachIndexed { _, optionText ->
Card(
shape = RoundedCornerShape(4.dp),
) {
Text(
modifier = Modifier
.fillMaxWidth()
.background(OffWhite)
.padding(16.dp),
text = optionText,
style = Typography.h3,
fontWeight = FontWeight.Medium,
color = Slate
)
}
}
}Yves Kalume
07/29/2022, 2:07 PMColumn(
modifier = Modifier
.fillMaxSize(),
verticalArrangement = Arrangement.spacedBy(margin.dp)
)KotlinLeaner
07/29/2022, 2:11 PMKotlinLeaner
07/29/2022, 2:11 PMKotlinLeaner
07/29/2022, 2:12 PMYves Kalume
07/29/2022, 2:32 PMCard(
shape = RoundedCornerShape(4.dp),
modifier = Modifier.padding(horizontal = 8.dp)
)John Nichol
07/29/2022, 2:33 PMSpacer if you need itKotlinLeaner
07/29/2022, 2:34 PMSpacerKotlinLeaner
07/29/2022, 2:34 PMYves Kalume
07/29/2022, 2:34 PMLazyColumn instead of Column https://foso.github.io/Jetpack-Compose-Playground/foundation/lazycolumn/KotlinLeaner
07/29/2022, 2:35 PMLazyColumn that's why I am using column