windowInsetsNestedScrollDemo
@OptIn(ExperimentalLayoutApi::class)
@Composable
fun windowInsetsNestedScrollDemo() {
LazyColumn(
modifier =
Modifier.fillMaxSize() // fill the window
.imePadding() // pad out the bottom for the IME
.imeNestedScroll(), // scroll IME at the bottom
reverseLayout = true, // First item is at the bottom
) {
// content
items(50) { Text("Hello World") }
}
}