Pablo
09/11/2024, 10:15 AMPablo
09/11/2024, 10:16 AMColumn(
modifier = modifier.fillMaxWidth(),
horizontalAlignment = column.getHorizontalAligment()
) {
for (element in column.childs) {
ElementComposableFactory(
element = element,
onClickAction = onClickAction,
modifier = Modifier.align(element.getHorizontalAligment())
)
}
}
LazyColumn:
LazyColumn(
modifier = modifier.fillMaxWidth(),
horizontalAlignment = column.getHorizontalAligment()
) {
items(column.childs) { element ->
ElementComposableFactory(
element = element,
onClickAction = onClickAction,
modifier = Modifier.align(element.getHorizontalAligment()) <-- compilation error, align doesn't exist for the items of a lazycolumn
)
}
}
Zach Klippenstein (he/him) [MOD]
09/11/2024, 3:24 PMModifier
.fillParentMaxWidth()
.wrapContentWidth()
https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/LazyItemScope?hl=en#(androidx.compose.ui.Modifier).fillParentMaxWidth(kotlin.Float)Pablo
09/11/2024, 5:40 PMPablo
09/11/2024, 5:40 PMPablo
09/11/2024, 5:41 PMStylianos Gakis
09/11/2024, 6:47 PMAlignment.Horizontal
parameterZach Klippenstein (he/him) [MOD]
09/12/2024, 6:24 AMPablo
09/12/2024, 10:13 AMPablo
09/12/2024, 10:13 AMPablo
09/12/2024, 10:17 AMAsyncImage(
model = element.getImageRoute(),
contentDescription = "",
modifier = modifier.fillMaxWidth(1f)
)
for some reason, the image is not filling the 100% of the width of the lazycolumnPablo
09/12/2024, 10:17 AMPablo
09/12/2024, 10:17 AMPablo
09/12/2024, 10:18 AM