refactor: Remove unnecessary AnimatedVisibility wrapper from top bar in ChatsListScreen
This commit is contained in:
@@ -675,24 +675,6 @@ android.util.Log.d("ChatsListScreen", "✅ Total LaunchedEffect: ${System.curren
|
|||||||
) {
|
) {
|
||||||
Scaffold(
|
Scaffold(
|
||||||
topBar = {
|
topBar = {
|
||||||
AnimatedVisibility(
|
|
||||||
visible = visible,
|
|
||||||
enter =
|
|
||||||
fadeIn(tween(300)) +
|
|
||||||
expandVertically(
|
|
||||||
animationSpec =
|
|
||||||
tween(
|
|
||||||
300,
|
|
||||||
easing =
|
|
||||||
FastOutSlowInEasing
|
|
||||||
)
|
|
||||||
),
|
|
||||||
exit =
|
|
||||||
fadeOut(tween(200)) +
|
|
||||||
shrinkVertically(
|
|
||||||
animationSpec = tween(200)
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
key(isDarkTheme, showRequestsScreen) {
|
key(isDarkTheme, showRequestsScreen) {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
navigationIcon = {
|
navigationIcon = {
|
||||||
@@ -874,7 +856,6 @@ android.util.Log.d("ChatsListScreen", "✅ Total LaunchedEffect: ${System.curren
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
floatingActionButton = {
|
floatingActionButton = {
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
|
|||||||
@@ -498,8 +498,8 @@ private fun ColorCircleItem(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Галочка с затемнённым фоном
|
// Галочка с затемнённым фоном (не для avatar — там уже иконка)
|
||||||
if (isSelected) {
|
if (isSelected && option.id != "avatar") {
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
|
|||||||
Reference in New Issue
Block a user