Created
July 10, 2023 15:49
-
-
Save Syex/498f53c9cf3c68832fb5b79a61a1c8bb 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, | |
exit = fadeOut(animationSpec = tween(durationMillis = 3_000)) | |
) { | |
Text(text = "Hello $name") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment