I am using BottomSheetScaffold to display a BottomSheet.
val bottomSheetScaffoldState = rememberBottomSheetScaffoldState(
bottomSheetState = rememberBottomSheetState(
initialValue = BottomSheetValue.Collapsed
)
)
BottomSheetScaffold(
sheetContent = {
MySheet()
},
scaffoldState = bottomSheetScaffoldState) {
MyMainContent()
}
)
Now I would like to display elements above the sheet which will move along when expanding or closing the sheet. e.g. like this:
The elements are not FloatingActionButtons.
Is there a Modifier I could use? Can this be achieved with the Box Layout, is there some CoordinatorLayout mode for it? Do I need to write my own layout?
In general: How can I achieve this with Jetpack Compose?

