I have a showModalBottomSheet
like the below, which I understand to inherit from BottomSheet
(right?)
showModalBottomSheet
showBottomSheet does not return a future, now it returns a PersistentBottomSheetController
var _scaffoldKey = GlobalKey();
PersistentBottomSheetController persistentBottomSheetController;
persistentBottomSheetController = _scaffoldKey.currentState.showBottomSheet(
(context)=>Container(
)
);
persistentBottomSheetController.closed.then(_closeModal);
void _closeModal(void value) {
print('modal closed');
}