chore: use root navigator for popup menus
This commit is contained in:
parent
a6cd7207b2
commit
87b6672677
2 changed files with 2 additions and 0 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
|
|
@ -524,6 +524,7 @@ class RoomDetailsButtonRowState extends State<RoomDetailsButtonRow> {
|
|||
}
|
||||
|
||||
return PopupMenuButton(
|
||||
useRootNavigator: true,
|
||||
onSelected: (button) => button.onPressed?.call(),
|
||||
itemBuilder: (context) {
|
||||
return otherButtons
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue