akshathjain/sliding_up_panel

onPanelClosed triggered by panelController.animatePanelToPosition

jarodtang opened this issue · 0 comments

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):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Flutter Version [e.g. 1.12.13]
  • sliding_up_panel Version [e.g. 1.0.0]