我想知道是否有一种方法可以像其他按钮一样从PopupMenuButton中移除闪屏和高亮显示。
new PopupMenuButton({
...
splashColor: Colors.transparent,
highlightColor: Colors.transparent, // makes highlight invisible too
})发布于 2020-02-24 06:42:17
Theme将主题应用于后代小部件。
Theme(
data: Theme.of(context).copyWith(
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
),
child: PopupMenuButton(...),
)https://stackoverflow.com/questions/60357060
复制相似问题