Skip to content

Instantly share code, notes, and snippets.

@chenzhang2006
Created March 30, 2022 20:12
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 chenzhang2006/1d91a6b9d2a2e47e6bc794b4f34ff699 to your computer and use it in GitHub Desktop.
Save chenzhang2006/1d91a6b9d2a2e47e6bc794b4f34ff699 to your computer and use it in GitHub Desktop.
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