feat: Always use FullSizeAvatar in ProfileScreen to prevent flickering during transitions

This commit is contained in:
k1ngsterr1
2026-01-30 03:45:52 +05:00
parent 5091eb557a
commit c4424683cb

View File

@@ -777,23 +777,12 @@ private fun CollapsingProfileHeader(
) {
// Используем AvatarImage если репозиторий доступен
if (avatarRepository != null) {
// При collapseProgress < 0.35 - fullscreen аватар (ещё не полностью круглый)
if (collapseProgress < 0.35f) {
FullSizeAvatar(
publicKey = publicKey,
avatarRepository = avatarRepository,
isDarkTheme = isDarkTheme
)
} else {
AvatarImage(
publicKey = publicKey,
avatarRepository = avatarRepository,
size = avatarSize,
isDarkTheme = isDarkTheme,
onClick = null,
showOnlineIndicator = false
)
}
// Всегда используем FullSizeAvatar чтобы избежать мерцания при переключении
FullSizeAvatar(
publicKey = publicKey,
avatarRepository = avatarRepository,
isDarkTheme = isDarkTheme
)
} else {
// Fallback: цветной placeholder с инициалами
Box(