Created
July 10, 2023 15:54
-
-
Save Syex/b46132b6d25c51fba584f48b27f6e0d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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