Rodri Represa
Colton Idle
Bryan L
AnimatedVisibility
AnimatedVisibility( visible = bottomBarState.subCategoriesVisibility, enter = slideInVertically( // Slide in from 40 dp from the top. initialOffsetY = { with(density) { 40.dp.roundToPx() } }, animationSpec = tween(durationMillis = 300, easing = LinearEasing) ) + fadeIn( // Fade in with the initial alpha of 0.3f. initialAlpha = 0.3f ), exit = slideOutVertically( targetOffsetY = { with(density) { 40.dp.roundToPx() } }, animationSpec = tween(durationMillis = 300, easing = LinearEasing) ) + fadeOut( animationSpec = tween(durationMillis = 300, easing = LinearEasing) ) ) { ... }
A modern programming language that makes developers happier.