Closed shailesh-mota closed 5 years ago
This is what I was missing :
void _listItemTapped(index) {
print('Collapsing');
_controller.collapse().whenCompleteOrCancel(() {
print('Collapsed');
// Do something here
});
}
Reading through TickerFuture
helped to use whenCompleteOrCancel
instead of whenComplete
.
Describe the bug First of all, great work with the RubberBottomSheet 👏 Now, I have a List much like in : https://github.com/mcrovero/rubber/blob/master/example/lib/scroll.dart Upon
onTap
on the ListTile item I want to collapse the bottom sheet and then further do some update on thelowerLayer
of theRubberBottomSheet
. So I went for something like :But I don't see
Collapsed
being printed at all. What am I missing here ?Gif