Skip to content

Provide a list of Material design primary and accent color swatches #2714

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

Merged
merged 1 commit into from
Mar 15, 2016

Conversation

collinjackson
Copy link
Contributor

No description provided.

@abarth
Copy link
Contributor

abarth commented Mar 15, 2016

LGTM

collinjackson added a commit that referenced this pull request Mar 15, 2016
Provide a list of Material design primary and accent color swatches
@collinjackson collinjackson merged commit 376c69d into flutter:master Mar 15, 2016
@collinjackson collinjackson deleted the colors_list branch March 15, 2016 21:14
@Hixie
Copy link
Contributor

Hixie commented Mar 15, 2016

cc @HansMuller There's some code in the gallery that can be simplified now that this exists.

orange,
deepOrange,
brown,
// grey intentionally omitted
Copy link
Contributor

Choose a reason for hiding this comment

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

@collinjackson Do you remember why you omitted grey here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Grey seemed like a special case, because it's sort of a "colorless color" and Colors.grey array contains more levels than the other primaries. The particular use case I was solving for was picking a random Material color, and I didn't want something to look disabled, and Colors.primaries.where((c) c != Colors.grey) seemed a bit verbose. But that said, I can see a valid argument for leaving grey in -- it's fine by me either way.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants