compose-collapsing-toolbar icon indicating copy to clipboard operation
compose-collapsing-toolbar copied to clipboard

FEATURE - Toolbar scrollable

Open GIGAMOLE opened this issue 2 years ago • 4 comments

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

Preview:

toolbar-scrollable

GIGAMOLE avatar May 08 '23 16:05 GIGAMOLE

By the way, who wants to use this feature, I created a separated remote dependency, while this PR is under review:

Add it in your root build.gradle at the end of repositories:

all projects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.GIGAMOLE:ComposeCollapsingToolbar:latest-version'
}

Or you can simply download it from there:

https://github.com/GIGAMOLE/ComposeCollapsingToolbar/releases

GIGAMOLE avatar May 08 '23 17:05 GIGAMOLE

Fixed the issue with forced verticalScroll() container clipping:

ezgif com-video-to-gif

GIGAMOLE avatar May 08 '23 18:05 GIGAMOLE

TODO:

Currently, there is no toolbar scroll limitation for each scroll type. After the merge of the Snapping Feature: https://github.com/onebone/compose-collapsing-toolbar/pull/83, it will be possible to track whether the offset or toolbar is scrolling to handle properly the toolbar scroll for each scroll strategy.

GIGAMOLE avatar May 23 '23 18:05 GIGAMOLE

I also need this change. Hopefully this gets merged asap.

Veeksi avatar Mar 01 '24 12:03 Veeksi