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