📜  onclose 模态重新加载屏幕颤动 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:17.255000             🧑  作者: Mango

代码示例1
Every Navigator push metod is async - you can wait till it poped

showModalBottomSheet under the hood pushes route to navigator, so you can 
rebuild your parent after bottomSheet closed this way

// somewhere in statefull parent
onTap:() async {
  await showModalBottomSheet();
  setState((){});
}