Closed deakjahn closed 3 years ago
@xclud Changed the thumb coloring a bit, it's more visible now.
Thank you for whole lot of contributions. Please give me some time to review :)
Oh, I will, I will, but I probably go forth and take a look at that other, outdated PR with the rotate gesture because I need everything, including the kitchen sink. :-)
A slider with a tape measure look:
There will be a snapping effect around the main ticks (the green ones, 45, 90, etc degrees in my sample).
The code is not very nice, I know, I needed to copy quite large a part of the original
slider.dart
just to be able to modify the drawing of the ticks. The originalSlider
simply calculates if there are too many ticks and decides not to draw at all in that case. Because we don't draw every tick now, this calculation is wrong.You can easily use it in your existing example as: