我的Flutter应用程序中有一个CupertinoAlertDialog和AlertDialog。每次弹出对话框时,它后面的一切都会变暗。我想把背景去掉。我该怎么做?
CupertinoDialogAction(
child: Text('Delete',
style: TextStyle(color: Colors.red),
),
onPressed: () async {
await CommentActivity.delete(postData[index]['id'])
.then((response) {
if (response) {
setState(() {
postData.removeAt(index);
createPageActivity();
renderPageActivity();
});
Navigator.of(context).pop();
}
});
}
)
],
)
https://stackoverflow.com/questions/56565364
复制相似问题