refactor: Remove unnecessary AnimatedVisibility wrapper from top bar in ChatsListScreen

This commit is contained in:
k1ngsterr1
2026-02-07 08:33:40 +05:00
parent 71181f49d9
commit 9febc6e135
2 changed files with 2 additions and 21 deletions

View File

@@ -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(

View File

@@ -498,8 +498,8 @@ private fun ColorCircleItem(
} }
} }
// Галочка с затемнённым фоном // Галочка с затемнённым фоном (не для avatar — там уже иконка)
if (isSelected) { if (isSelected && option.id != "avatar") {
Box( Box(
modifier = Modifier modifier = Modifier
.fillMaxSize() .fillMaxSize()