-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Reorder Theme fields and arguments to be consistently alphabetical within sections. #104011
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
Reorder Theme fields and arguments to be consistently alphabetical within sections. #104011
Conversation
HansMuller
left a comment
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, although there's a trivial lint fix needed.
| /// * [ColorScheme.fromSeed], which is used to create a [ColorScheme] from a seed color. | ||
| factory ThemeData({ | ||
| // For the sanity of the reader, make sure these properties are in the same | ||
| // order everywhere that they are separated by section comments (e.g. |
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.
order everywhere that they are => order everywhere and that they are
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.
Well, that's not what I meant, though: I meant that everywhere they are listed and (already) separated by section comments, they should be in the same order. I mean, yeah, they should also be separated by section comments everywhere that they're all listed too, but that's a different thing.
I'll change "everywhere" to be "in every place" if that helps.
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.
SGTM
|
test-exempt: code refactor also, thank you so much for doing this |
…tical within sections. (flutter/flutter#104011)
…tical within sections. (flutter/flutter#104011)
…tical within sections. (flutter/flutter#104011)
…tical within sections. (flutter/flutter#104011)
…tical within sections. (flutter/flutter#104011)
Description
This reorders Theme fields and arguments to be consistently alphabetical within sections by symbol name, for both the sanity of the reader, and the sanity of the person adding a new field.
Tests