Skip to content

Instantly share code, notes, and snippets.

@hongbeomi
Created June 13, 2021 05:37
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 hongbeomi/9e27b6930343e99a86fc2bb8212d55d7 to your computer and use it in GitHub Desktop.
Save hongbeomi/9e27b6930343e99a86fc2bb8212d55d7 to your computer and use it in GitHub Desktop.
@Composable
fun CharacterDialog(
...,
onDismissRequest: () -> Unit
) {
Dialog(onDismissRequest = onDismissRequest) {
//
}
}
// using
CharacterDialog(...) {
viewModel.hideCharacterDialogEvent()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment