I am using androidx.compose.material.Slider. Is there an easy way to change the orientation to vertical? Horizontal works great, but I can’t find a vertical example. It looks like material for angular has a simple vertical attribute.
m
matvei
09/11/2020, 5:03 PM
Hey! I don't think material spec has smth like this. Crazy idea, but you can try to just rotate 90 degrees clockwise using
drawLayer
and it will probably work 🙂
🤯 1
g
Guy Bieber
09/11/2020, 6:23 PM
The rotation doesn’t seem to stay inside the Row/Column the slider is in. The controls don’t seem to slide anymore either. Weirdness.
Guy Bieber
09/11/2020, 6:35 PM
I was able to get it oriented right by some layout. The drag is still left to right instead of up and down.
m
matvei
09/14/2020, 12:04 PM
I see. We don't have plans to provide vertical slider currently, but I expected rotation to work with gestures. File a feature request for slider please and I can take a look at some point