mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-13 05:33:39 +00:00
Remove easing on progress animation
This commit is contained in:
parent
95ecbe664d
commit
eeabd32da4
@ -1,6 +1,7 @@
|
|||||||
package org.thoughtcrime.securesms.onboarding.loading
|
package org.thoughtcrime.securesms.onboarding.loading
|
||||||
|
|
||||||
import androidx.compose.animation.core.Animatable
|
import androidx.compose.animation.core.Animatable
|
||||||
|
import androidx.compose.animation.core.LinearEasing
|
||||||
import androidx.compose.animation.core.TweenSpec
|
import androidx.compose.animation.core.TweenSpec
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
@ -27,7 +28,10 @@ internal fun LoadingScreen(state: State) {
|
|||||||
animatable.stop()
|
animatable.stop()
|
||||||
animatable.animateTo(
|
animatable.animateTo(
|
||||||
targetValue = 1f,
|
targetValue = 1f,
|
||||||
animationSpec = TweenSpec(durationMillis = state.duration.inWholeMilliseconds.toInt())
|
animationSpec = TweenSpec(
|
||||||
|
durationMillis = state.duration.inWholeMilliseconds.toInt(),
|
||||||
|
easing = LinearEasing
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user