Skip to content

Instantly share code, notes, and snippets.

@nikit19
Created October 24, 2021 07:14
Show Gist options
  • Save nikit19/090551a6add6428a935f5af7c5dd7299 to your computer and use it in GitHub Desktop.
Save nikit19/090551a6add6428a935f5af7c5dd7299 to your computer and use it in GitHub Desktop.
@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