WillPopScope共1篇

Flutter showDialog拦截返回键

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