mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 00:39:54 +00:00
Update: Comment out animation for now (till implementing better logic to handle changing state)
This commit is contained in:
parent
79fe50ee41
commit
090aef6a47
@ -2,12 +2,6 @@ package com.looker.droidify.ui.compose.components
|
|||||||
|
|
||||||
import androidx.compose.animation.AnimatedContent
|
import androidx.compose.animation.AnimatedContent
|
||||||
import androidx.compose.animation.ExperimentalAnimationApi
|
import androidx.compose.animation.ExperimentalAnimationApi
|
||||||
import androidx.compose.animation.SizeTransform
|
|
||||||
import androidx.compose.animation.fadeIn
|
|
||||||
import androidx.compose.animation.fadeOut
|
|
||||||
import androidx.compose.animation.slideInVertically
|
|
||||||
import androidx.compose.animation.slideOutVertically
|
|
||||||
import androidx.compose.animation.with
|
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
@ -38,19 +32,20 @@ fun MainActionButton(
|
|||||||
) {
|
) {
|
||||||
AnimatedContent(
|
AnimatedContent(
|
||||||
targetState = packageState,
|
targetState = packageState,
|
||||||
transitionSpec = {
|
// TODO Fix redrawing changing state
|
||||||
//when (targetState) {
|
/*transitionSpec = {
|
||||||
/*is Cancelable -> {
|
when (targetState) {
|
||||||
|
is Cancelable -> {
|
||||||
slideInVertically { height -> height } + fadeIn() with
|
slideInVertically { height -> height } + fadeIn() with
|
||||||
slideOutVertically { height -> -height } + fadeOut()
|
slideOutVertically { height -> -height } + fadeOut()
|
||||||
}*/
|
}
|
||||||
//is ButtonWork -> {
|
is ButtonWork -> {
|
||||||
(slideInVertically { height -> -height } + fadeIn() with
|
(slideInVertically { height -> -height } + fadeIn() with
|
||||||
slideOutVertically { height -> height } + fadeOut())
|
slideOutVertically { height -> height } + fadeOut())
|
||||||
//}
|
|
||||||
//}
|
|
||||||
.using(SizeTransform(clip = false))
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.using(SizeTransform(clip = false))
|
||||||
|
}*/
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
Modifier
|
Modifier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user