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

chore: use root navigator for popup menus
pull/2245/head
ggurdin 6 months ago committed by GitHub
commit 9ec6c49b7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

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

Loading…
Cancel
Save