feat: update animation specifications for item placement and swipe dialog

This commit is contained in:
k1ngsterr1
2026-02-12 09:34:58 +05:00
parent f7ece6055e
commit 263d00b783

View File

@@ -1276,13 +1276,9 @@ fun ChatsListScreen(
modifier =
Modifier.animateItemPlacement(
animationSpec =
spring(
dampingRatio =
Spring
.DampingRatioNoBouncy,
stiffness =
Spring
.StiffnessLow
tween(
durationMillis = 200,
easing = FastOutSlowInEasing
)
)
) {
@@ -1960,7 +1956,7 @@ fun SwipeableDialogItem(
val animatedOffsetX by
animateFloatAsState(
targetValue = offsetX,
animationSpec = tween(durationMillis = 200, easing = telegramEasing),
animationSpec = tween(durationMillis = 160, easing = telegramEasing),
label = "swipeOffset"
)