Merge pull request #2964 from pangeachat/2948-orange-box-error-from-details-menu-to-home

chore: use root navigator for popup menus
This commit is contained in:
ggurdin 2025-06-06 13:54:58 -04:00 committed by GitHub
commit 9ec6c49b7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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