fix change view dropdown not working on macos clicking

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
Sahil Yeole 2023-11-03 20:12:52 +05:30
parent a2bc02b4c5
commit 203891c957

View File

@ -824,13 +824,14 @@ class _PeerViewDropdownState extends State<PeerViewDropdown> {
setState(() { setState(() {
menuPos = RelativeRect.fromLTRB(x, y, x, y); menuPos = RelativeRect.fromLTRB(x, y, x, y);
}); });
}, showMenu(
onTap: () => showMenu(
context: context, context: context,
position: menuPos, position: menuPos,
items: items, items: items,
elevation: 8, elevation: 8,
), );
},
onTap: () => {}
); );
} }
} }