最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

popupmenu - How to check if last item on ModalRoute is a PopupMenuButton in flutter? - Stack Overflow

programmeradmin9浏览0评论

How to check if last widget on stack is PopupMenuButton to pop:

I want to only pop if its a PopupMenu. I use :

if (previousRoute is "PleaseFillHere") {
      context.pop();
    }

Can anyone help? It seems not hard but I cant find a solution online.

发布评论

评论列表(0)

  1. 暂无评论