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 =
Modifier.animateItemPlacement( Modifier.animateItemPlacement(
animationSpec = animationSpec =
spring( tween(
dampingRatio = durationMillis = 200,
Spring easing = FastOutSlowInEasing
.DampingRatioNoBouncy,
stiffness =
Spring
.StiffnessLow
) )
) )
) { ) {
@@ -1960,7 +1956,7 @@ fun SwipeableDialogItem(
val animatedOffsetX by val animatedOffsetX by
animateFloatAsState( animateFloatAsState(
targetValue = offsetX, targetValue = offsetX,
animationSpec = tween(durationMillis = 200, easing = telegramEasing), animationSpec = tween(durationMillis = 160, easing = telegramEasing),
label = "swipeOffset" label = "swipeOffset"
) )