Releases: GIGAMOLE/ComposeCollapsingToolbar
Releases · GIGAMOLE/ComposeCollapsingToolbar
1.0.8
By default, CollapsingToolbarScaffold
is scrollable when the body content is unfilled (basically the scrollable body content without Modifier.fillMaxHeight()
/Modifier.fillMaxSize()
). In order to disable the scroll only when body content is unfilled, set enabledWhenBodyUnfilled = false
in CollapsingToolbarScaffold
. Also note that if the CollapsingToolbar
is collapsed when the body content becomes unfilled, it will be automatically expanded.
Preview:
1.0.7
1.0.6
1.0.5
1.0.4
Snap Config
SnapConfig
defines how CollapsingToolbar
snaps to its edges. You can enable snapping by providing snapConfig
to CollapsingToolbarScaffold
:
CollapsingToolbarScaffold(
/* ... */
snapConfig = SnapConfig() // "collapseThreshold = 0.5" by default
) {
/* ... */
}