Created
February 15, 2026 07:18
-
-
Save skydoves/6f2677c1097a7cf5ec1701cab2ed02c4 to your computer and use it in GitHub Desktop.
FlexibleBottomSheet - Nested scrolling with LazyVerticalGrid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FlexibleBottomSheet( | |
| onDismissRequest = onDismissRequest, | |
| sheetState = rememberFlexibleBottomSheetState( | |
| flexibleSheetSize = FlexibleSheetSize( | |
| fullyExpanded = 0.9f, | |
| intermediatelyExpanded = 0.5f, | |
| slightlyExpanded = 0.18f, | |
| ), | |
| isModal = false, | |
| skipSlightlyExpanded = false, | |
| allowNestedScroll = true, // enabled by default | |
| ), | |
| ) { | |
| LazyVerticalGrid( | |
| modifier = Modifier.fillMaxSize(), | |
| columns = GridCells.Fixed(2), | |
| ) { | |
| items(items = posters, key = { it.name }) { poster -> | |
| PosterImage(poster = poster) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment