Chris1234567899 / flutter_time_range_picker

A time range picker for Flutter
MIT License
33 stars 53 forks source link

Replace GestureDetector with Listener for better performance when scrollers are involved. #4

Closed JanezStupar closed 4 years ago

JanezStupar commented 4 years ago

In my application I need to put the widget into a vertically scrollable area. This causes an issue where drag events on picker seem to get delayed due to GestureArena showdown between the ListView and the picker.

Thus the coordinates received by the _panStart method sometimes get delayed and the delayed coordinates result in picker not being able to figure out which handler got touched, leading to a gesture not being claimed. Ultimately resulting in no handler movement.

I replaced the GestureDetector with a Listener which improves the responsiveness.