ScalingLazyColumnState
class ScalingLazyColumnState(val initialScrollPosition: ScalingLazyColumnState.ScrollPosition = ScrollPosition(1, 0), val autoCentering: AutoCenteringParams? = AutoCenteringParams(
initialScrollPosition.index,
initialScrollPosition.offsetPx,
), val anchorType: ScalingLazyListAnchorType = ScalingLazyListAnchorType.ItemCenter, val contentPadding: PaddingValues = PaddingValues(horizontal = 10.dp), val rotaryMode: ScalingLazyColumnState.RotaryMode? = RotaryMode.Scroll, val reverseLayout: Boolean = false, val verticalArrangement: Arrangement.Vertical = Arrangement.spacedBy(
space = 4.dp,
alignment = if (!reverseLayout) Alignment.Top else Alignment.Bottom,
), val horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, val flingBehavior: FlingBehavior? = null, val userScrollEnabled: Boolean = true, val scalingParams: ScalingParams = WearScalingLazyColumnDefaults.scalingParams(), val hapticsEnabled: Boolean = true) : ScrollableState
A Config and State object wrapping up all configuration for a ScalingLazyColumn. This allows defaults such as ScalingLazyColumnDefaults.responsive.
Constructors
Link copied to clipboard
constructor(initialScrollPosition: ScalingLazyColumnState.ScrollPosition = ScrollPosition(1, 0), autoCentering: AutoCenteringParams? = AutoCenteringParams(
initialScrollPosition.index,
initialScrollPosition.offsetPx,
), anchorType: ScalingLazyListAnchorType = ScalingLazyListAnchorType.ItemCenter, contentPadding: PaddingValues = PaddingValues(horizontal = 10.dp), rotaryMode: ScalingLazyColumnState.RotaryMode? = RotaryMode.Scroll, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = Arrangement.spacedBy(
space = 4.dp,
alignment = if (!reverseLayout) Alignment.Top else Alignment.Bottom,
), horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, flingBehavior: FlingBehavior? = null, userScrollEnabled: Boolean = true, scalingParams: ScalingParams = WearScalingLazyColumnDefaults.scalingParams(), hapticsEnabled: Boolean = true)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open suspend override fun scroll(scrollPriority: MutatePriority, block: suspend ScrollScope.() -> Unit)