只需使用await,然后在关闭对话框后运行“ then”块中的代码
await showDialog( //Your Dialog Code).then((val){ Navigator.pop(_context);});
上一篇 Flutter Container:不能同时提供颜色和装饰
下一篇 Flutter:在iOS中禁用滑动导航
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号