codeOfJannik / multi_thumb_slider

Flutter package for a slider with multiple thumbs
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

listener insider thumb #1

Open ritvikc opened 1 week ago

ritvikc commented 1 week ago

is there a way to change the value of the thumb without moving the thumb itself?

codeOfJannik commented 6 days ago

What do you mean by that? Can you give a specific use case example? I would be happy to help. The values are attached to the thumb since the position of the thumb on the slider is determined by the attached value.

ritvikc commented 5 days ago

Thanks for the response! So I am displaying a long video and using three thumbs to allow for cropping (like on an iphone how it has left trim, right trim, and current position of video). the video is long so i have to make the thumbs small, but this makes them hard to pick up. I wanted to add some other bigger button in a different spot so that when it was pressed, it would move the sliders.

ritvikc commented 5 days ago

I was also wondering if it would work to use a gesture detector on top of the thumbs to detect a long press or if this would interfere with its inherent behavior.

codeOfJannik commented 1 hour ago

I'm currently pretty busy, but will come back with an answer to you and give you some suggestions. I also have to do dive into the package code again before 😅

ritvikc commented 1 hour ago

No worries, I figured it out! Thanks