From 0bb4e6d642b69e33c3b3f9f431e6528ead34e2e0 Mon Sep 17 00:00:00 2001 From: Vivek Singh <2307vivek@gmail.com> Date: Thu, 15 Jun 2023 17:57:39 +0530 Subject: [PATCH 1/2] updated version to 1.1.1 --- seeker/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seeker/build.gradle b/seeker/build.gradle index d0037b8..f1233ad 100644 --- a/seeker/build.gradle +++ b/seeker/build.gradle @@ -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' } From c38568eccae0872968fe2ebfa1f78f7138208319 Mon Sep 17 00:00:00 2001 From: Vivek Singh <2307vivek@gmail.com> Date: Thu, 15 Jun 2023 18:26:00 +0530 Subject: [PATCH 2/2] added doc for thumbvalue --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 5f06fd4..ccd3637 100644 --- a/README.md +++ b/README.md @@ -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:
Also, follow me on __[github](https://github.com/2307vivek)__ and __[twitter](https://twitter.com/2307vivek)__ to stay updated with my creations! 🤩