Skip to content

Instantly share code, notes, and snippets.

@chenzhang2006
Created March 30, 2022 20:12
Side Effect to Reveal Backdrop
// BackdropScaffoldState to be observed by Compose Runtime
val backdropState = rememberBackdropScaffoldState(BackdropValue.Concealed)
//Launch coroutine to animate revealling backdrop
LaunchedEffect(backdropState) {
backdropState.reveal()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment