Skip to content

Fix DropdownMenu does not apply opacity to the selected value when disabled #170336

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 1 commit into
base: master
Choose a base branch
from

Conversation

huycozy
Copy link
Member

@huycozy huycozy commented Jun 10, 2025

Fix #169942

Description

The bug is about the effectiveTextStyle being applied to the inner TextField inside DropdownMenu fails to reflect the disabled style based on the enabled property.
The fix for this is simply to check the enabled property and override the TextField's TextStyle.

Demo of the fix

before after
before.mov
after.mov

Pre-launch Checklist

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

@huycozy huycozy self-assigned this Jun 10, 2025
@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Jun 10, 2025
@huycozy huycozy force-pushed the fix-dropdownmenu-opacity-selected-value-disabled-169942 branch from 8fc8dd2 to c57ae72 Compare June 10, 2025 11:39
@huycozy huycozy marked this pull request as ready for review June 10, 2025 14:12
@huycozy huycozy requested a review from QuncCccccc June 10, 2025 14:14
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.

DropdownMenu does not apply opacity to the selected value when disabled
1 participant