Skip to content

Conversation

@gspencergoog
Copy link
Contributor

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

  • Test exempt because we're just reordering fields, with no effect on functionality.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels May 17, 2022
@gspencergoog gspencergoog requested a review from HansMuller May 17, 2022 20:58
Copy link
Contributor

@HansMuller HansMuller left a 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.
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM

@Hixie
Copy link
Contributor

Hixie commented May 18, 2022

test-exempt: code refactor

also, thank you so much for doing this

@fluttergithubbot fluttergithubbot merged commit 0849671 into flutter:master May 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request May 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request May 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 30, 2022
@gspencergoog gspencergoog deleted the reorder_theme_args branch October 7, 2022 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants