代码逻辑:
@Composable
fun ShowLoading() {
val rotation = remember { Animatable(0f) }
// 开启旋转动画
LaunchedEffect(isRotating) {
launch {
rotation.animateTo(
targetValue = 360f,
animationSpec = infiniteRepeatable(
animation = tween(
durationMillis = 5000,
&nbs