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 377 forks source link

onPanelClosed triggered by panelController.animatePanelToPosition #304

Open jarodtang opened 2 years ago

jarodtang commented 2 years ago

Describe the bug When I tried to open up the SlidingUpPanel by animatePanelToPostion, the SlidingUpPanel.onPanelClosed miss called.

To Reproduce SlidingUpPanel( // defaultPanelState: PanelState.CLOSED, controller: panelController, onPanelClosed: () { debugPrint("onPanelClosed called"); dictProvier.clearup(); }, minHeight: 0.0,

by panelController.animatePanelToPosition(0.5);

Smartphone (please complete the following information):