Flutter material popup menu doesn't consume the latest context #43824
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Flutter material popup menu doesn't consume the latest context but the one passed in its constructor. This can be observed if you toggle to dark mode in a popup menu, for example.
Details in b/140223471
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
- StatusShow more project fieldsDone (PR merged)
Activity
escamoteur commentedon Oct 30, 2019
Can you please elaborate on this?
Please post the output of
flutter doctor -vhere and tell us if this happens on Android and iOS or only on one platform.It would be helpful if you could show us your code.
jefflim-google commentedon Feb 8, 2020
There is code and information in the internal bug b/140223471 and example fix code in cl/266109089
wytesk133 commentedon Apr 7, 2022
Here's a minimal repro:
Steps to reproduce:
Current behavior:
https://user-images.githubusercontent.com/3948279/162324895-08f0a810-ef49-4d21-9433-e1d53d8deb5f.mp4
Interesting scenario to try: if we remove these lines,
the popup menu will now respond to the system theme changes:
https://user-images.githubusercontent.com/3948279/162324916-3783e1cd-125a-49d7-b8d4-ac0202384d66.mp4
11 remaining items
Fix PopupMenu does not update when PopupMenuTheme in Theme changes. (#…
github-actions commentedon Oct 22, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Fix PopupMenu does not update when PopupMenuTheme in Theme changes. (f…
Fix PopupMenu does not update when PopupMenuTheme in Theme changes. (…
Fix PopupMenu does not update when PopupMenuTheme in Theme changes. (…