• Renzo Olivares's avatar
    Fix bottom sheet rebuilding when tapping (#127526) · 83f19be2
    Renzo Olivares authored
    This fixes an issue where the bottom sheet would rebuild when `enableDrag` is set to true on every tap. This is because `DragGestureRecognizer` would win the arena by default and dispatch the `drag` callbacks (in `acceptGesture`) even though it had not met the drag threshold. This changes keep the default behavior of `DragGestureRecognizer` the same, but adds a parameter `onlyAcceptDragOnThreshold` that a user can use to stop drag callbacks from being fired when the drag threshold has not been met.
    
    Fixes #126833
    83f19be2
monodrag_test.dart 6.71 KB