responsive

fun responsive(firstItemIsFullWidth: Boolean = true, additionalPaddingAtBottom: Dp = 10.dp, verticalArrangement: Arrangement.Vertical = Arrangement.spacedBy( space = 4.dp, alignment = Alignment.Top, ), horizontalPaddingPercent: Float = 0.052f, rotaryMode: ScalingLazyColumnState.RotaryMode? = RotaryMode.Scroll, hapticsEnabled: Boolean = true, reverseLayout: Boolean = false, userScrollEnabled: Boolean = true): ScalingLazyColumnState.Factory

Creates a Responsive layout for ScalingLazyColumn. The first and last items will scroll just onto screen at full size, assuming rounded corners of a Chip.

Parameters

firstItemIsFullWidth

set to false if the first item is small enough to fit at the top, however it may be scaled.

additionalPaddingAtBottom

additional padding at end of content to avoid problem items clipping

verticalArrangement

the ScalingLazyColumn verticalArrangement.

horizontalPaddingPercent

the amount of horizontal padding as a percent.

rotaryMode

the rotary handling, such as Fling or Snap.

hapticsEnabled

whether haptics are enabled.

reverseLayout

whether to start at the bottom.

userScrollEnabled

whether to allow user to scroll.