Im-Kevin / cool_ui

用flutter实现一些我认为好看的UI控件,有Popover,仿Weui的Toast,自定义键盘
Apache License 2.0
460 stars 74 forks source link

CupertinoPopoverMenuItem 点击后不关闭 #31

Closed ghost closed 4 years ago

ghost commented 4 years ago
onTap: () {
                    Navigator.pushNamed(context, "/newFriend");
                    return true;
                  },

如果返回false 路由将不会跳转 如果返回true 路由跳转了 但是没有关闭

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.68. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

ghost commented 4 years ago

使用Navigator.of(context).popAndPushNamed("/newFriend"); 就行了 告辞😋