fix: App crash on page navigation with open popup menu

This commit is contained in:
Christian Kußowski 2025-05-29 12:44:06 +02:00
commit 49780b01fe
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 10 additions and 0 deletions

View file

@ -52,6 +52,7 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
children: [
const SizedBox.shrink(),
PopupMenuButton<ChatPopupMenuActions>(
useRootNavigator: true,
onSelected: (choice) async {
switch (choice) {
case ChatPopupMenuActions.leave:

View file

@ -36,6 +36,7 @@ class LogViewerState extends State<LogViewer> {
onPressed: () => setState(() => fontSize--),
),
PopupMenuButton<Level>(
useRootNavigator: true,
itemBuilder: (context) => Level.values
.map(
(level) => PopupMenuItem(