我一直在努力使颤动popup_menu package更通用,并使自定义child小部件显示在弹出窗口中,而不是预定义的MenuItem。
child
MenuItem
[如果有人发现这个想法有趣,我已经在dartpad上共享了解决方案原型,以便您可以实际使用它:
Here is the changed original package code that enables custom child to be inserted to the popover。
干杯!