Closed
Description
Checklist
- I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
- This issue only relates to a single feature. I will open new issues for any other features.
Is your feature request related to a problem?
In some apps it is necessary to differentiate ValueChanged events to a slider that are occurring during a drag action, vs a ValueChanged that occurs at the end of a user interaction, in order to trigger backend logic only in the 2nd case.
Is it possible to construct a solution with the existing API?
Yes, by extending Slider, overriding DragEnd
(and later overriding Tapped
as well once tap-to-set support lands in the slider widget), to keep track of when the user interaction ends yourself
Describe the solution you'd like to see.
A new callback API to the slider widget OnChangeEnded func()
which allows application code to be notified when a user interaction that is changing the slider value has completed. Maybe the signature should be OnChangeEnded func(float)
where the last set value is passed as well
Activity