Skip to content

feat: Added Focus Toggle for DropdownMenu TrailingIcon Button #172753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AlsoShantanuBorkar
Copy link

@AlsoShantanuBorkar AlsoShantanuBorkar commented Jul 25, 2025

Added an API to toggle the focus of DropdownMenu Trailing IconButton.

Fixes #172687

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Jul 25, 2025
@SalehTZ
Copy link
Contributor

SalehTZ commented Jul 27, 2025

I think the test Using keyboard navigation to select and without setting the FocusNode parameter in file dropdown_menu_test.dart line:4166 is failing. See how the changes affect this test.

https://github.com/AlsoShantanuBorkar/flutter/blob/6eda6544640d3d488eeebce3d531c38e01170a7b/packages/flutter/test/material/dropdown_menu_test.dart#L4134-L4180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to skip DropdownMenu TrailingIcon Focus when navigating via Keyboard
2 participants