-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add slider customizations #11185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add slider customizations #11185
Conversation
|
This will need tests; the |
|
What's the use case for not showing the thumb? |
| expect(sliderBox, paints..circle(color: theme.accentColor)); | ||
| await tester.pumpWidget(buildApp(customColor)); | ||
| expect(sliderBox, paints..rect(color: customColor)..rect(color: theme.unselectedWidgetColor)); | ||
| expect(sliderBox, paints..circle(color: customColor)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you probably want some negative tests here too, verifying that there isn't a circle of the custom color when the custom color isn't set and that there isn't one of the accent color when the custom color is set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
|
One of our use cases of the slider doesn't have the thumb. However, after some discussion, we are removing that use case, so I will remove the |
|
Ok! |
|
This can land once the tree is green. |
|
Thank you very much for your contribution! |
|
Thank you @maryx ! |
|
@Hixie Thanks very much! Can you merge this in please? I don't have write access. |
|
Done! Thanks again! |
When creating a Slider widget, a user can now customize: