Repository navigation
Fix Popup menu Semantics label for mismatched platforms - #177049
auto-submit[bot] merged 3 commits into
Conversation
commented
Oct 15, 2025
|
/gemini review |
left a comment
There was a problem hiding this comment.
Code Review
This pull request correctly fixes an accessibility issue where the popup menu's semantics label was determined by the theme's platform instead of the actual device platform. The change in popup_menu.dart to use defaultTargetPlatform is appropriate and directly addresses the problem. The new tests in popup_menu_test.dart are well-written and effectively cover the regression scenarios for both Apple and non-Apple platforms, ensuring the fix works as intended. I've included one suggestion to refactor the new tests to improve code maintainability by reducing duplication.
10c1643 to
dd8bab6
Compare
dd8bab6 to
5bb50f8
Compare
commented
Oct 24, 2025
|
autosubmit label was removed for flutter/flutter/177049, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Signed-off-by: huycozy <[email protected]>
Signed-off-by: huycozy <[email protected]>
Signed-off-by: huycozy <[email protected]>
5bb50f8 to
414204f
Compare
defaultTargetPlatforminstead of platform from theme for Semantics label in _PopupMenu widgetPre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.