Updated on 2026-08-14
This commit is contained in:
parent
b47d65db1b
commit
748793e67d
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
package com.tangem.common.ui.amountScreen.ui
|
||||
|
||||
import androidx.compose.animation.AnimatedContent
|
||||
import androidx.compose.animation.fadeIn
|
||||
import androidx.compose.animation.fadeOut
|
||||
import androidx.compose.animation.togetherWith
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||
|
|
@ -127,6 +130,8 @@ private fun AmountInfoMain(amountUM: AmountState, modifier: Modifier = Modifier)
|
|||
AnimatedContent(
|
||||
targetState = amountUM,
|
||||
modifier = modifier,
|
||||
contentKey = { amountUM.javaClass }, // Show animation only when the state type changes [Empty -> Data]
|
||||
transitionSpec = { fadeIn().togetherWith(fadeOut()) },
|
||||
) { currentAmount ->
|
||||
Column(
|
||||
verticalArrangement = Arrangement.spacedBy(2.dp),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue