mertceyhan
05/20/2022, 5:22 PMhttps://miro.medium.com/max/794/1*pcqyKlenZjgZAI_J7kF7wQ.gif▾
ste
05/20/2022, 6:17 PMNestedScrollConnection
object to detect when the top bound is reached: if so, the next drags will control the bottom sheet offsetmertceyhan
05/21/2022, 7:33 AMjossiwolf
05/21/2022, 4:01 PMlesincs
05/22/2022, 8:57 AMBottomSheetScaffold
, just giving the root composable of sheetContent
a Modifier.verticalScroll()
should workmertceyhan
05/22/2022, 3:00 PMBottomSheetScaffold
’s contentverticalScroll()
to the content’s modifier, you will get a crash because of the nested scroll.lesincs
05/23/2022, 5:40 AMmertceyhan
05/23/2022, 2:08 PMModalBottomSheetLayout(
modifier = Modifier.fillMaxSize(),
sheetState = sheetState,
sheetContent = {
Column(modifier = Modifier
.fillMaxSize()
.verticalScroll(rememberScrollState())) {
}
})
lesincs
05/24/2022, 12:53 PM