📜  onpressed 传递上下文颤动 - Dart 代码示例

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

代码示例1
FloatingActionButton(
      onPressed: () => _showAddingDialog(context),
  ),
  
  Future _showAddingDialog(BuildContext context) {
  // ...
  }