我有一个像下面这样的showModalBottomSheet
,我理解这是从BottomSheet
继承的(对吗?)
showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return Container(
height: 260.0,
child: Text('I am text')
);
},
);
我想做的是:
我想知道(听)模式何时关闭,并对其采取行动.
我看过这个onClosing
回拨:
https://docs.flutter.io/flutter/material/BottomSheet/onClosing.html个
我怎样才能将监听器连接到showModalBottomSheet
,然后在它触发时采取相应的操作呢?