Flutterwidget共1篇

Flutter showDialog拦截返回键

Flutter showDialog拦截返回键-趙哥博客-赵哥博客
showDialog( context: context, barrierDismissible: false,//点击外部遮罩区域是否可以关闭dialog builder: (context) { return WillPopScope( onWillPop: () async => false,//关键代码 ch...
趙哥的头像-趙哥博客-赵哥博客趙哥2年前
04516