AnimatedVisibility not working with dialog

1.5k Views Asked by At

I am trying to animate this dialog coming into the screen but animated visibility does not seem to work here. I've tried many things but none seem to work. Any ideas why this would not work and/or a possible work around?

val openDialog = remember { mutableStateOf(false) }

AnimatedVisibility(

            visible = openDialog.value,
            enter =  fadeIn(animationSpec = tween(durationMillis = 1250)),
            exit = scaleOut(),

        ) {

            Dialog(onDismissRequest = { /*TODO*/ }) {
                 Text("Test")
            }


 }
0

There are 0 best solutions below