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.36k stars 378 forks source link

[Feature Request] onBackdropTap handler #216

Open harrisonturton opened 3 years ago

harrisonturton commented 3 years ago

Describe the bug

When I using panelBuilder and linking the scroll controller with a ListView, I want to be able to minimise the panel and reset the list's scroll position when the panel is closed.

I can do this with a button, using scrollController.jumpTo(0) and panelController.animateTo(), but I cannot figure out how to make this happen when the backdrop is used to close the panel.

To Reproduce

Create a panel using panelBuilder and use the provided scroll controller in a ListView child.

Expected behavior

A handler/callback for backdrop tap events.

harrisonturton commented 3 years ago

I just realised there is a pull request for this already! Here is the PR

Would be very awesome if that was merged.

eerbee commented 2 years ago

yes agree, i need that one too