首页 > 解决方案 > Flutter:如何制作圆润的 PopupMenuButton 的 InkWell?

问题描述

我在 FloatingActionButton 中有一个 PopupMenuButton。但它的 InkWell 不是圆形的,它是标准的方形。我怎样才能做到这一点?

标签: flutter

解决方案


使用customBorder的属性InkWell

InkWell(
    customBorder: CircleBorder(),
    onTap: () {}
    child: ...
)

推荐阅读