Убрал рывки анимации блока реквестов в списке чатов

This commit is contained in:
2026-03-19 19:09:09 +05:00
parent 53946e2e6e
commit 420ea6e560

View File

@@ -2237,21 +2237,7 @@ fun ChatsListScreen(
visible = visible =
isRequestsVisible, isRequestsVisible,
enter = enter =
slideInVertically( expandVertically(
initialOffsetY = {
fullHeight ->
-fullHeight /
3
},
animationSpec =
tween(
durationMillis =
260,
easing =
FastOutSlowInEasing
)
) +
expandVertically(
expandFrom = expandFrom =
Alignment Alignment
.Top, .Top,
@@ -2267,27 +2253,15 @@ fun ChatsListScreen(
animationSpec = animationSpec =
tween( tween(
durationMillis = durationMillis =
180 180,
easing =
LinearOutSlowInEasing
), ),
initialAlpha = initialAlpha =
0.7f 0.7f
), ),
exit = exit =
slideOutVertically( shrinkVertically(
targetOffsetY = {
fullHeight ->
-fullHeight /
3
},
animationSpec =
tween(
durationMillis =
220,
easing =
FastOutSlowInEasing
)
) +
shrinkVertically(
shrinkTowards = shrinkTowards =
Alignment Alignment
.Top, .Top,
@@ -2303,7 +2277,9 @@ fun ChatsListScreen(
animationSpec = animationSpec =
tween( tween(
durationMillis = durationMillis =
140 140,
easing =
FastOutLinearInEasing
) )
) )
) { ) {
@@ -2399,16 +2375,7 @@ fun ChatsListScreen(
listBackgroundColor listBackgroundColor
} }
Column( Column {
modifier =
Modifier.animateItemPlacement(
animationSpec =
tween(
durationMillis = 200,
easing = FastOutSlowInEasing
)
)
) {
SwipeableDialogItem( SwipeableDialogItem(
dialog = dialog =
dialog, dialog,