首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >删除颤动警报对话框的灰色背景

删除颤动警报对话框的灰色背景
EN

Stack Overflow用户
提问于 2019-06-12 23:08:51
回答 3查看 8.3K关注 0票数 9

我的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();
                  }
                });
              }
            )
          ],
        )
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56565364

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档