sleek_circular_slider icon indicating copy to clipboard operation
sleek_circular_slider copied to clipboard

Decouple progress bar width and touchable area: add `minimumTouchWidth` argument

Open tony-ditchlabs opened this issue 2 years ago • 0 comments

Use case: When the user taps near, but not directly on, the progress bar, the widget doesn't update.

The problem: In the _onPanDown and _handlePan methods, the touchWidth is defined as the greater of 25.0 or the progress bar width

The fix: Change the number 25.0 to an argument in the constructor, minimumTouchWidth. This will let the designer/developer decide the fault tolerance for the slider. Setting it to double.infinity will ensure that every gesture is captured.

tony-ditchlabs avatar May 02 '22 16:05 tony-ditchlabs