Skip to content

Instantly share code, notes, and snippets.

@Syex
Created July 10, 2023 15:54
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 Syex/b46132b6d25c51fba584f48b27f6e0d2 to your computer and use it in GitHub Desktop.
Save Syex/b46132b6d25c51fba584f48b27f6e0d2 to your computer and use it in GitHub Desktop.
@Composable
fun Greeting(name: String?) {
AnimatedVisibility(
visible = name != null
) {
val rememberedName = remember(this) { name!! }
Text(text = rememberedName)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment