fix: App crash on page navigation with open popup menu
This commit is contained in:
parent
3078e9788f
commit
49780b01fe
8 changed files with 10 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ class LogViewerState extends State<LogViewer> {
|
|||
onPressed: () => setState(() => fontSize--),
|
||||
),
|
||||
PopupMenuButton<Level>(
|
||||
useRootNavigator: true,
|
||||
itemBuilder: (context) => Level.values
|
||||
.map(
|
||||
(level) => PopupMenuItem(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue