cuongtd
pawegio
composable("screen") { EnterTransition { Screen() } } // ... @Composable private fun EnterTransition( content: @Composable () -> Unit, ) { if (/* check if is not on back stack */) { AnimatedVisibility( visible = true, enter = slideInHorizontally(initialOffsetX = { it }), exit = slideOutHorizontally(targetOffsetX = { -it }), content = content, initiallyVisible = false ) } else { content() } }
Ian Lake
A modern programming language that makes developers happier.