feat(player): 3D-переворот обложки при смене трека

Вместо простой смены — эффект переворота (как страница альбома/пластинка):
старая обложка улетает передней гранью (0–90°), новая прилетает задней
(90–180°, контр-вращение чтобы не зеркалилась). Компонент FlipCover,
подключён к обложке в плеере; срабатывает при смене coverUrl трека.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
nk
2026-06-04 17:19:10 +03:00
parent 147b3ac81d
commit a46e437351
2 changed files with 83 additions and 8 deletions

View File

@@ -140,14 +140,11 @@ fun PlayerBottomSheet(
contentAlignment = Alignment.Center
) {
val coverModel = track?.coverUrl ?: station?.coverUrl
if (!coverModel.isNullOrBlank()) {
AsyncImage(
model = com.radiola.ui.components.crossfadeModel(coverModel),
contentDescription = station?.name,
modifier = Modifier.fillMaxSize(),
contentScale = ContentScale.Crop
)
} else {
com.radiola.ui.components.FlipCover(
model = coverModel,
contentDescription = station?.name,
modifier = Modifier.fillMaxSize()
) {
Icon(
imageVector = Lucide.Radio,
contentDescription = null,