feat: update animation specifications for item placement and swipe dialog
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user