fix: 返回动画结束时 alpha 完全归零,消除闪屏
This commit is contained in:
parent
bde143a25b
commit
911b8f2293
@ -38,7 +38,7 @@ private fun GraphicsLayerScope.applyDismissTransform(progress: Float) {
|
|||||||
translationX = progress * size.width * 0.5f
|
translationX = progress * size.width * 0.5f
|
||||||
scaleX = 1f - progress * 0.08f
|
scaleX = 1f - progress * 0.08f
|
||||||
scaleY = 1f - progress * 0.08f
|
scaleY = 1f - progress * 0.08f
|
||||||
alpha = 1f - progress * 0.8f
|
alpha = 1f - progress
|
||||||
shadowElevation = 32.dp.toPx() * progress
|
shadowElevation = 32.dp.toPx() * progress
|
||||||
shape = RoundedCornerShape(28.dp * progress)
|
shape = RoundedCornerShape(28.dp * progress)
|
||||||
clip = progress > 0.01f
|
clip = progress > 0.01f
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user