Skip to content

Instantly share code, notes, and snippets.

@MariaLuiza-CS
Created August 4, 2023 08:43
val lazyListState = rememberLazyListState()
LazyColumn(
contentPadding = PaddingValues(horizontal = 16.dp, vertical = 32.dp),
state = lazyListState,
modifier = Modifier.padding(paddingValues)
){
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
item { Text(text = "Scroll here") }
item { Spacer(modifier = Modifier.height(16.dp)) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment