Update color scheme seed generation to use color utils package#95175
Update color scheme seed generation to use color utils package#95175darrenaustin merged 6 commits intoflutter:masterfrom
Conversation
guidezpl
left a comment
There was a problem hiding this comment.
_ ___ _____ __ __
| | / __|_ _| \/ |
| |_| (_ | | | | |\/| |
|____\___| |_| |_| |_|
darrenaustin
left a comment
There was a problem hiding this comment.
Thanks for doing this. It was on my list for this morning actually. I originally did something like this but thought it was going to be a more stable implementation and didn't want to have the overhead of constructing Scheme object only to copy all the stuff into the ColorScheme. Given that it has changed already, it makes more sense to rely only the Scheme. I am a little concerned about future changes like this as once this hits stable we won't want to be changing the generated schemes as people may start to depend on them.
All that said, this looks good. However it looks like we need to update the theme_data scheme generation test as it is failing:
darrenaustin
left a comment
There was a problem hiding this comment.
LGTM. Thanks again.
|
This pull request is not suitable for automatic merging in its current state.
|
|
This pull request is not suitable for automatic merging in its current state.
|
This updates the version of
material_color_utilitiesand uses theSchemeobject to create the color scheme instead of doing the mappings ourselves. This ensures we match the spec/source of truth for color schemes.Closes #95172
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.