chore: use root navigator for popup menus

This commit is contained in:
ggurdin 2025-06-06 13:54:25 -04:00
parent a6cd7207b2
commit 87b6672677
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 2 additions and 0 deletions

View file

@ -213,6 +213,7 @@ class PangeaChatInputRowState extends State<PangeaChatInputRow> {
clipBehavior: Clip.hardEdge,
decoration: const BoxDecoration(),
child: PopupMenuButton<String>(
useRootNavigator: true,
icon: const Icon(Icons.add_outlined),
onSelected: _controller.onAddPopupMenuButtonSelected,
itemBuilder: (BuildContext context) =>

View file

@ -524,6 +524,7 @@ class RoomDetailsButtonRowState extends State<RoomDetailsButtonRow> {
}
return PopupMenuButton(
useRootNavigator: true,
onSelected: (button) => button.onPressed?.call(),
itemBuilder: (context) {
return otherButtons