Hi, Is there any better approach in compose to sol...
# compose
k
Hi, Is there any better approach in compose to solve last item padding in column? Please have a look my approach.. Thanks
Copy code
Column {
    items.forEachIndexed { index, item ->
        if (index != items.lastIndex) {
            Column(
                Modifier.padding(0.dp, 0.dp, 0.dp, dimensionResource(R.dimen.item_view_padding))
            ) { }
        }
    }
}
a
Colunn(verticalArrangement = Arrangement.spacedBy(dimensionResource(R.dimen.item_view_padding)))
k
So this one will not show last item padding?