akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.38k stars 378 forks source link

When closing the panel from (eg.) a tap on the backdrop, reset and turn off integrated panel scrolling #236

Open willbryant opened 3 years ago

willbryant commented 3 years ago

Otherwise it's impossible to drag the panel up again by the header, because although we receive the drag events on the listener, _scrollingEnabled is set to true, so the slide handler ignores the event.

willbryant commented 3 years ago

Rebased to master and fixed merge conflict with the dart format commit.

GabrielBB commented 2 years ago

@willbryant How did you achieve closing the panel with a tap in the backdrop? Should I use defaultPanelState ?

willbryant commented 2 years ago

I don't have any references to defaultPanelState and I don't remember/see any code in my app to handle backdrop taps, I think it is the default behavior?