8000 Fixes keyboard selects disabled radio by chunhtai · Pull Request #176727 · flutter/flutter · GitHub
[go: up one dir, main page]

Skip to content

Conversation

chunhtai
Copy link
Contributor
@chunhtai chunhtai commented Oct 8, 2025

fixes #176398

Pre-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-assist bot 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.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Oct 8, 2025
@chunhtai chunhtai requested a review from justinmc October 8, 2025 16:52
Copy link
Contributor
@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly addresses the issue of keyboard navigation selecting disabled radio buttons by filtering them out. The addition of the enabled property to the RadioClient mixin and its implementation in RawRadio and RadioListTile is a clean solution. The new test case in radio_group_test.dart effectively validates the fix.

I've found one potential issue regarding an edge case that could lead to a crash, which I've detailed in a comment.

Copy link
Contributor
@justinmc justinmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 , thanks for jumping on this.

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.

RadioGroup allows selecting disabled items when using keyboard navigation on web and desktop

2 participants

0