It's working when I keep it in AppBar. But in ListTile it's not working.
It's working in debug build not working in release build. May I know what's the issue exactly..
In my case when I add PopupMenuButton the button itself not showing in release build.
Widget popupMenu() {
return PopupMenuButton(
color: Colors.white,
icon: Icon(
Icons.more_vert,
size: 30,
color: Colors.black,
),
onSelected: (value) {
//conditions check
},
itemBuilder: (context) => [
PopupMenuItem(
value: 'Message',
child: Text(
'Message',
)),
]);
}