Parallax Content
The scrollable body of a ComposeParallaxToolbarLayout. The lambda receives true once the toolbar is collapsed.
The header collapses through nested scrolling, so any vertically scrollable composable works as the body. Regular and Lazy are conveniences; Custom takes anything else, such as a LazyVerticalGrid, a LazyVerticalStaggeredGrid or a pager whose pages scroll.
Inheritors
Types
Link copied to clipboard
data class Custom(val content: @Composable ParallaxToolbarScope.(collapsed: Boolean) -> Unit) : ParallaxContent
Any scrollable composable. It is given the full width and the height left below the collapsed toolbar; it should fill that size and scroll vertically so nested scroll events reach the header. contentPadding passed to the layout is not applied; apply it inside.
Link copied to clipboard
data class Lazy(val content: LazyListScope.(Boolean) -> Unit, val config: LazyColumnConfig = LazyColumnConfig(), val lazyListState: LazyListState? = null) : ParallaxContent
Content laid out in a LazyColumn, for long lists.
Link copied to clipboard
data class Regular(val content: @Composable ParallaxToolbarScope.(collapsed: Boolean) -> Unit) : ParallaxContent
Regular content laid out in a Column with vertical scroll.