feat: add animated visibility for external ratings in DetailMetaInfo

This commit is contained in:
tapframe 2026-04-06 20:30:30 +05:30
parent 99750d0661
commit 08e0af38a6

View file

@ -1,6 +1,11 @@
package com.nuvio.app.features.details.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.expandVertically
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
@ -130,7 +135,11 @@ fun DetailMetaInfo(
}
}
if (meta.externalRatings.isNotEmpty()) {
AnimatedVisibility(
visible = meta.externalRatings.isNotEmpty(),
enter = fadeIn() + expandVertically(),
exit = fadeOut() + shrinkVertically(),
) {
DetailRatingsRow(
ratings = meta.externalRatings,
)