Compose Unstyled 2.0 is out! Check the official announcement blog ->
Class

VerticalScrollMode.SnapScrollMatchHeight

Items will snap into place and match the height of the parent view.

Source set: Android
@RequiresApi(api = Build.VERSION_CODES_FULL.BAKLAVA_1)
public class SnapScrollMatchHeight(public val initialChildHeight: Dp) : VerticalScrollMode

Items will snap into place and match the height of the parent view.

Parameters

initialChildHeight How large to make a child. This value is used before a measure pass has been run. The container will always try to make the child match its height. Pass in the intended height of the parent container here.

Last updated: