https://kotlinlang.org logo
#compose
Title
# compose
a

Ankit Shah

01/13/2022, 10:14 AM
Hello Everyone, I need to add a lazyVerticalGrid inside a scrollable column. How can I achieve it? for example:
Copy code
Column(modifier = Modifier
    .padding(it)
    .fillMaxSize()
    .verticalScroll(scrollState)
){
Box(){
    Text("Sample Widget")
}
Box(){
    LazyVerticalGrid(cells = GridCells.Fixed(3)) {
                items(3) { index ->
                    val item = index
                    Text(text = "Item $item")
                }
            }
    }
}
c

Cristian Rosa

01/13/2022, 10:41 AM
as far I know nested scroll are not allow yet. there are some workaround around, but for what I saw there are based on every single specific case and ofter consist on re-adapt your view
c

Colton Idle

01/13/2022, 5:44 PM
@Andrey Kulikov I thought two infinitely sized things in compose will never work (and that's the plan to keep it that way). Two infitiely sized views used to work in view-land but it was mostly accidental and didn't actually work correctly I thought?
8 Views