-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
ExpandIcon Custom Colors #33148
ExpandIcon Custom Colors #33148
Conversation
@@ -249,7 +249,7 @@ class ThemeData extends Diagnosticable { | |||
splashColor: splashColor, | |||
materialTapTargetSize: materialTapTargetSize, | |||
); | |||
disabledColor ??= isDark ? Colors.white30 : Colors.black38; | |||
disabledColor ??= isDark ? Colors.white50 : Colors.black38; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is likely to have an impact on many apps and tests. Even though it's a tiny change, it would be good to move it to a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I'll make the color update into a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking here: #33149
* Implement ExpandIcon custom color, expandedColor, and disabledColor * Update to use pumpAndSettle instead of hard-coded duration * Update colors to unfocused state, added dark mode test to active state * Fix Colors.white30 doc opacity value * Add links to Material Design specifications to color, expandedColor and disabledColor * Update API docs to reference dark theme material page
Description
Updates the dark mode ThemeData.disabledColor value to match the Material Design specification.See Update default colors for enabled/disabled text/iconography #33149This takes over #31053
Related Issues
#18992
#21328
Tests
I added the following tests:
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?