@Composable public fun TypingIndicatorAnimatedDot( initialDelayMillis: Int, ) { val alpha = remember { Animatable(0.5f) }  LaunchedEffect(initialDelayMillis) { delay(initialDelayMillis.toLong()) alpha.animateTo( targetValue = 1f, animationSpec = infiniteRepeatable( animation = tween( durationMillis = DotAnimationDurationMillis, delayMillis = DotAnimationDurationMillis, ), repeatMode = RepeatMode.Reverse, ), ) }  val color: Color = ChatTheme.colors.textLowEmphasis.copy(alpha = alpha.value)  Box( Modifier.background(color, CircleShape).size(5.dp) ) }
Show a dot with infinite alpha animation