feat: Always use FullSizeAvatar in ProfileScreen to prevent flickering during transitions
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user