【发布时间】:2019-10-31 12:52:22
【问题描述】:
有什么方法可以创建带有圆形边框的自定义弹出窗口吗? 这是我当前的代码和设计:
child: Container(
child: PopupMenuButton(
onSelected: _savedLocationOptionSelected,
itemBuilder: (context) {
return SavedLocationOptions.choises.map((value) {
return PopupMenuItem<String>(
value: value,
child: Text(value),
);
}).toList();
},
icon: Icon(
Icons.more_vert,
color: Colors.grey[300],
),
),
),
【问题讨论】:
-
同样的问题... shape 属性丢失 ^^
标签: flutter dart rounded-corners popupmenu