flutter - Flutter:如何制作圆润的 PopupMenuButton 的 InkWell?
问题描述
我在 FloatingActionButton 中有一个 PopupMenuButton。但它的 InkWell 不是圆形的,它是标准的方形。我怎样才能做到这一点?
解决方案
使用customBorder
的属性InkWell
:
InkWell(
customBorder: CircleBorder(),
onTap: () {}
child: ...
)
推荐阅读
- javascript - Owl carousel - 如何检测现有的并在必要时加载
- dolphindb - 来自 DolphinDB 数据库中 sql 语句的向量
- excel - 搜索字符串,如果找到则粘贴值 - 然后循环
- ruby-on-rails - 如何修复 Rails 单选按钮集合总是返回最后一个值?
- php - Display last WooCommerce admin order note in customers order history
- qt - QSystemTrayIcon 不可用,然后在 Ubuntu 18.04 LTS 上使用 sudo 运行应用程序
- javascript - onChange?: (ValueType, ActionMeta) => void,与 OptionType 不兼容
- scenekit - 更新场景视图的 pointOfView 位置属性后的 SceneKit `projectPoint` 问题
- ios - idleTimerDisabled 不适用于(自治)单应用程序模式
- azure - 如何在 Azure devops 中为多个管道(在多个项目中)使用管道模板