Skip to content

Instantly share code, notes, and snippets.

@Farhandroid
Created March 8, 2022 10:59
Show Gist options
  • Save Farhandroid/8970d542d891c7d0761689a7b8986616 to your computer and use it in GitHub Desktop.
Save Farhandroid/8970d542d891c7d0761689a7b8986616 to your computer and use it in GitHub Desktop.
SplashScreenAnimation
val scale = remember {
Animatable(0f)
}
LaunchedEffect(key1 = true, block = {
scale.animateTo(targetValue = 1f,
animationSpec = tween(
durationMillis = 2000,
))
delay(2000L)
navController.popBackStack()
navController.navigate(Screens.MainScreen.name)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment