Skip to content

Instantly share code, notes, and snippets.

@akitikkx
Created March 16, 2022 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akitikkx/3992248952d3587ab79978ee70e77044 to your computer and use it in GitHub Desktop.
Save akitikkx/3992248952d3587ab79978ee70e77044 to your computer and use it in GitHub Desktop.
@ExperimentalMaterialApi
@Composable
fun DetailArea(
...
modalBottomSheetState: ModalBottomSheetState
) {
...
val coroutineScope = rememberCoroutineScope()
Column(...) {
...
showCast?.let {
if (it.isNotEmpty()) {
ShowCastList(it) { showCastItem ->
coroutineScope.launch {
modalBottomSheetState.show()
}
onCastItemClick(showCastItem)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment