return new WillPopScope(
        child: Scaffold(
      body: new Center(
          child: new Column(
        children: <Widget>[
      ......  
        ],
      )),
      floatingActionButton: FloatingActionButton(
        onPressed: () => Navigator.pop(context),
//      tooltip: 'Update Text',
        child: Icon(Icons.reply),
      ),
    ),
    onWillPop: (){print("返回键点击了");Navigator.pop(context);});
  }

 

相关文章:

  • 2021-09-16
  • 2018-04-13
  • 2022-01-11
  • 2021-11-19
  • 2021-10-15
  • 2021-09-19
  • 2021-05-27
  • 2021-09-16
猜你喜欢
  • 2021-08-06
  • 2021-09-16
  • 2021-09-16
  • 2021-09-16
  • 2021-12-15
  • 2021-09-16
  • 2022-01-13
  • 2021-12-05
相关资源
相似解决方案