You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Slider] Thumb's center doesn't align with division's center #62567
I'm trying to create a custom slider like the one below :
For that, I created 2 custom classes from SliderComponentShape and SliderTickMarkShape for the Slider's Thumb and the Slider divisions. In both the class, I was just fiddling around the paint object and radius to create the custom shape for my division and my thumb, and there is nothing fancy.
But the problem is, except the center position in the slider, the thumb doesn't get aligned to any other division's center.
I've posted this problem in the StackOverflow here and explained this very clearly with all the needed codes.
The question is: Shouldn't the thumb's center get naturally aligned to the division's center in all its positions? Or am I missing something?
changed the title [-]Problem in aligning the thumb's center to the division's center in the slider widget.[/-][+][Slider] Thumb's center doesn't align with division's center[/+]on Jul 21, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
HansMuller commentedon Jul 30, 2020
CC @clocksmith @JoseAlba
[-]Problem in aligning the thumb's center to the division's center in the slider widget.[/-][+][Slider] Thumb's center doesn't align with division's center[/+]TahaTesser commentedon Jul 21, 2022
This is reproducible in a new duplicate #108007
Results provided by @danagbemava-nc
TahaTesser commentedon May 31, 2024
This is blocking #147783
I'm fixing this bug to unblock the PR.
Before
After
Fix `Slider` thumb doesn't align with divisions, thumb padding, and r…
github-actions commentedon Jul 29, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.