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(
context: context,
position: menuPos,
items: items,
elevation: 8,
);
}, },
onTap: () => showMenu( onTap: () => {}
context: context,
position: menuPos,
items: items,
elevation: 8,
),
); );
} }
} }