Skip to content

Releases: GIGAMOLE/ComposeCollapsingToolbar

1.0.8

10 May 13:23
Compare
Choose a tag to compare

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:

body-unfilled

1.0.7

08 May 20:48
Compare
Choose a tag to compare

Additional fixes for clipping toolbar scrolling.

1.0.6

08 May 19:52
Compare
Choose a tag to compare

Fixes for clipping toolbar scrolling.

1.0.5

08 May 17:48
Compare
Choose a tag to compare

By default, CollapsingToolbar is not scrollable. In order to enable it, set toolbarScrollable = true in CollapsingToolbarScaffold.

Preview:

toolbar-scrollable

1.0.4

08 May 15:03
Compare
Choose a tag to compare

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
) {
    /* ... */
}

Snap for ScrollStrategy.EnterAlways

Snap for EnterAlways

Snap for ScrollStrategy.EnterAlwaysCollapsed

Snap for EnterAlwaysCollapsed

Snap ScrollStrategy.ExitUntilCollapsed

Snap for ExitUntilCollapsed

1.0.3

05 May 11:17
Compare
Choose a tag to compare

Remove clipToBounds() modifier