MutableContentTransform
fun MutableContentTransform(initialVeilMatchParentSize: Boolean = false, targetVeilMatchParentSize: Boolean = false, initialOffsetVelocityProvider: () -> Point2D.Float? = null, targetOffsetVelocityProvider: () -> Point2D.Float? = null, block: MutableContentTransform.() -> Unit = {}): MutableContentTransform
A MutableContentTransform with block applied to it.
MutableContentTransform {
initialContentTransform { alpha = 1f - progress }
targetContentTransform { alpha = progress }
}Content copied to clipboard
Parameters
initialVeilMatchParentSize
whether a scrim over the content the container is showing covers the whole box that content occupies; see MutableTransform.
targetVeilMatchParentSize
whether a scrim over the content the announced state brings in covers the whole box that content occupies; see MutableTransform.
initialOffsetVelocityProvider
the offset velocity of the content the container is showing; see MutableTransform.offsetVelocityProvider.
targetOffsetVelocityProvider
the offset velocity of the content the announced state brings in; see MutableTransform.offsetVelocityProvider.
block
declares the transform of each of the two contents.