Skip to content

Commit 9b69c45

Browse files
committed
update: [MiuixPopupUtil] Optimize animation parameters.
1 parent 490f5cf commit 9b69c45

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/utils/MiuixPopupUtil.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package top.yukonga.miuix.kmp.utils
22

33
import androidx.compose.animation.AnimatedVisibility
4-
import androidx.compose.animation.core.Spring
54
import androidx.compose.animation.core.spring
65
import androidx.compose.animation.core.tween
76
import androidx.compose.animation.fadeIn
@@ -118,15 +117,15 @@ class MiuixPopupUtil {
118117
modifier = Modifier.zIndex(2f).fillMaxSize(),
119118
enter = if (largeScreen.invoke().value) {
120119
fadeIn(
121-
animationSpec = spring(0.8f, Spring.StiffnessMediumLow),
120+
animationSpec = spring(0.9f, 900f),
122121
) + scaleIn(
123122
initialScale = 0.8f,
124-
animationSpec = spring(0.8f, Spring.StiffnessMediumLow),
123+
animationSpec = spring(0.73f, 900f),
125124
)
126125
} else {
127126
slideInVertically(
128127
initialOffsetY = { fullHeight -> fullHeight },
129-
animationSpec = spring(0.88f, Spring.StiffnessMediumLow)
128+
animationSpec = spring(0.92f, 500f)
130129
)
131130
},
132131
exit = if (largeScreen.invoke().value) {

0 commit comments

Comments
 (0)