【发布时间】:2020-12-05 17:54:28
【问题描述】:
我正在使用一个图标小部件,我希望当我按下图标时可以跳转到另一个地方(如通话图标),以及当我按下图标时打开另一个小部件的选项(如三个点)图标),我的问题是在颤振图标小部件中没有onlongpress ... 任何可能有助于这样做的示例代码?
这是我现在的代码:
child: ListTile(
leading: CircleAvatar(
radius: 25.0,
backgroundColor: Colors.brown,
),
title: Text(helpRequest.category),
subtitle: Text(helpRequest.description),
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
IconButton(
icon: Icon(
Icons.call,
size: 20.0,
color: Colors.brown[900],
),
onPressed: () {
},
),
IconButton(
icon: Icon(
Icons.more_vert,
size: 20.0,
color: Colors.brown[900],
),
onPressed: () {
},
),
],
),
),
【问题讨论】:
标签: flutter widget icons onpress