Skip to content

Instantly share code, notes, and snippets.

@nikit19
Created Oct 24, 2021
Embed
What would you like to do?
@Composable
public fun ScalingLazyColumn(
modifier: Modifier = Modifier,
scalingParams: ScalingParams = ScalingLazyColumnDefaults.scalingParams(),
reverseLayout: Boolean = false,
verticalArrangement: Arrangement.Vertical =
Arrangement.spacedBy(
space = 4.dp,
alignment = if (!reverseLayout) Alignment.Top else Alignment.Bottom
),
horizontalAlignment: Alignment.Horizontal = Alignment.Start,
contentPadding: PaddingValues = PaddingValues(horizontal = 8.dp),
state: ScalingLazyListState = rememberScalingLazyListState(),
content: ScalingLazyListScope.() -> Unit
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment