📜  如何从颤振中的对话框中获取价值 - 任何代码示例

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

代码示例1
showDialog(
  context: context,
  builder: (context) => Dialog(
    val: vale,
  ),
).then((valueFromDialog){
  // use the value as you wish
  print(valueFromDialog);
});