SliderAttachment when Slider has multiple thumbs

Hi guys,

The SliderAttachment constructor requires a Slider reference so that it can connect that slider to a parameter of a ValueTreeState object.
But I have sliders that have multiple thumbs instead of one.
I can set a min and max value of the slider.

Is it possible to connect one thumb of a slider to a parameter of the valuetreestate object?

Thanks in advance,

Currently, this is not possible.

Oke, thank you.

Hi Jelle,

Just out of interest, how did you imlement the slider with two thumbs, by inheritance and extending slider class or composing two sliders into one custom component?

The Slider has different modes, described here, e.g. TwoValueVertical

I posted a solution for something like a SliderAttachment for a TwoValueSlider here: