I have a showModalBottomSheet
like the below, which I understand to inherit from BottomSheet
(right?)
showModalBottomSheet
Old post but anyways, Might be helpful for you or others. So you can also achieve it by use of whenComplete
function of showModalBottomSheet
.
Let's see below code
showModalBottomSheet(
context: context,
builder: (BuildContext context) {
return Container(
height: 260.0,
child: Text('I am text')
);
},
).whenComplete(() {
print('Hey there, I\'m calling after hide bottomSheet');
});
That's it.