1

I have this weird behavior when using compose lazy column or LazyVerticalGrid

When scrolling to the top the lazy grid gets separated from the status bar

How can i prevent that ?

Giving the lazy grid a background can solve the issue but that's not what I want !



enter image description here



My Code

LazyVerticalGrid(
        modifier = modifier
            .fillMaxWidth()
            .height(500.dp),
        columns = GridCells.Adaptive(120.dp),
        verticalArrangement = Arrangement.spacedBy(16.dp),
        horizontalArrangement = Arrangement.spacedBy(16.dp)
    ) {




        item(span = {
            GridItemSpan(maxLineSpan)
        }) {
           Header()
        }



    items(items = historyAppointments) { item ->
        AppointmentCard(item)
    }


}
Tarik Husin
  • 197
  • 2
  • 9

0 Answers0