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.
Describe the bug
When I using
panelBuilder
and linking the scroll controller with aListView
, 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)
andpanelController.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 aListView
child.Expected behavior
A handler/callback for backdrop tap events.