mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-04 17:29:07 +00:00
feat: add animated visibility for external ratings in DetailMetaInfo
This commit is contained in:
parent
99750d0661
commit
08e0af38a6
1 changed files with 10 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue