Убрал рывки анимации блока реквестов в списке чатов
This commit is contained in:
@@ -2237,21 +2237,7 @@ fun ChatsListScreen(
|
||||
visible =
|
||||
isRequestsVisible,
|
||||
enter =
|
||||
slideInVertically(
|
||||
initialOffsetY = {
|
||||
fullHeight ->
|
||||
-fullHeight /
|
||||
3
|
||||
},
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis =
|
||||
260,
|
||||
easing =
|
||||
FastOutSlowInEasing
|
||||
)
|
||||
) +
|
||||
expandVertically(
|
||||
expandVertically(
|
||||
expandFrom =
|
||||
Alignment
|
||||
.Top,
|
||||
@@ -2267,27 +2253,15 @@ fun ChatsListScreen(
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis =
|
||||
180
|
||||
180,
|
||||
easing =
|
||||
LinearOutSlowInEasing
|
||||
),
|
||||
initialAlpha =
|
||||
0.7f
|
||||
),
|
||||
exit =
|
||||
slideOutVertically(
|
||||
targetOffsetY = {
|
||||
fullHeight ->
|
||||
-fullHeight /
|
||||
3
|
||||
},
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis =
|
||||
220,
|
||||
easing =
|
||||
FastOutSlowInEasing
|
||||
)
|
||||
) +
|
||||
shrinkVertically(
|
||||
shrinkVertically(
|
||||
shrinkTowards =
|
||||
Alignment
|
||||
.Top,
|
||||
@@ -2303,7 +2277,9 @@ fun ChatsListScreen(
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis =
|
||||
140
|
||||
140,
|
||||
easing =
|
||||
FastOutLinearInEasing
|
||||
)
|
||||
)
|
||||
) {
|
||||
@@ -2399,16 +2375,7 @@ fun ChatsListScreen(
|
||||
listBackgroundColor
|
||||
}
|
||||
|
||||
Column(
|
||||
modifier =
|
||||
Modifier.animateItemPlacement(
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis = 200,
|
||||
easing = FastOutSlowInEasing
|
||||
)
|
||||
)
|
||||
) {
|
||||
Column {
|
||||
SwipeableDialogItem(
|
||||
dialog =
|
||||
dialog,
|
||||
|
||||
Reference in New Issue
Block a user