Skip to content

Commit

Permalink
Merge pull request #40 from 2307vivek/prep-for-release
Browse files Browse the repository at this point in the history
Prep for release
  • Loading branch information
2307vivek authored Jun 15, 2023
2 parents 17f6390 + c38568e commit 12b80ac
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,28 @@ Seeker(
```
![interactions-1 (online-video-cutter com)](https://user-images.githubusercontent.com/67380664/218961219-d2db59e5-6219-4de7-80d4-c503b163182e.gif)

### Using different value for thumb
Seeker has the ability to provide a seperate value for the thumb, which makes it possible to move the thumb independent of the progress.
```kotlin
val position by viewModel.position.collectAsState()
var thumbPosition by remember{ mutableStateOf(0f) }

val isDragging by interactionSource.collectIsDraggedAsState()

Seeker(
value = value,
thumbValue = if (isDragging) thumbPosition else position,
onValueChange = { thumbPosition = it },
onValueChangeFinished = { value = thumbPosition },
readAheadValue = readAheadValue,
interactionSource = interactionSource,
range = 1f..100f,
...
)
```
![f4d2d702-68c4-4ebb-8dd5-40f5996aa37f](https://github.com/2307vivek/Seeker/assets/67380664/3a72c58e-f3b7-4039-b0e0-57aa2e419df4)


## Find this library useful? :heart:
Support it by joining __[stargazers](https://github.com/2307vivek/seeker/stargazers)__ for this repository. :star: <br>
Also, follow me on __[github](https://github.com/2307vivek)__ and __[twitter](https://twitter.com/2307vivek)__ to stay updated with my creations! 🤩
Expand Down
2 changes: 1 addition & 1 deletion seeker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

ext {
PUBLISH_GROUP_ID = 'io.github.2307vivek'
PUBLISH_VERSION = '1.1.0'
PUBLISH_VERSION = '1.1.1'
PUBLISH_ARTIFACT_ID = 'seeker'
}

Expand Down

0 comments on commit 12b80ac

Please sign in to comment.