-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Deprecate ThemeData.primaryX
#110848
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
Deprecate ThemeData.primaryX
#110848
Conversation
9fb7510
to
ce83114
Compare
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.
Great stuff! LGTM.
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.
It looks like this broke a few things in flutter/plugins. Those will need to be migrated first before this can land.
Please see flutter/plugins#6417 |
@Piinks How does this look, especially the fixes? |
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.
Fixes look good. I still think this should be split in 2 at least. The clean up is great, but lumping it in with deprecating something means all of it could end up getting reverted if the deprecation breaks something internally. It is not uncommon for deprecations to get reverted.
Further, from the point of view of removing deprecations later, it is a lot easier if the git history is clean.
98d6c3e
to
b0b3854
Compare
That makes sense, I'll land the fixes in 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.
LGTM once CI is happy. flutter/plugins probably just hasn't rolled in your change yet.
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
In line with https://flutter.dev/go/material-theme-system-updates and #91772, deprecates redundant/unused
ThemeData
properties.ThemeData.primaryColor
ColorScheme.primary
ThemeData.primaryColorLight
CircleAvatar
default backgroundThemeData.primaryColorDart
CircleAvatar
default backgroundA Dart fix is provided.
This is not a breaking change, per our policy.
This PR also improves the description of
ThemeData.colorScheme
and re-orders a few already-deprecatedThemeData
members to the right spot and fixes version number copy-paste error from #110162.Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.