Open QuentinSc opened 4 years ago
I decided to change the library files until this is solved. I changed the following 2 methods to fix opening and closing:
//close the panel
Future<void> _close() {
_scrollingEnabled = false;
return _ac.fling(velocity: -1.0);
}
//open the panel
Future<void> _open() {
_scrollingEnabled = true;
return _ac.fling(velocity: 1.0);
}
(hope my english is clear)
Describe the bug Became crazy after spend my evening on this. It seems there is a bug when using SlidingUp panel with list view. It's not working with some parameter from the sliding up widget. In some case the listview keep the focus while the panel is closed.
To Reproduce Use the code sample for panelBuilder. Enable backdropTapClosesPanel Scroll up to open the panel. Scroll the list. Tap on the backdrop to close the panel The listview became scrollable in the panel closed and it's became complicated to reopen the panel.
Expected behavior Reopen the panel on scroll up. Option to make the scrollcontroller jump to begin when the panel is closed.
Smartphone (please complete the following information):
Sample
main.dart
Please provide a samplemain.dart
that reproduces this issue. The code provided here should be able to be run on its own without any external dependencies.Thank you !