Repository navigation
Revert "[material_ui] Deprecate the black/white parameters in Typography.material2021 (#13443)" - #13463
Revert "[material_ui] Deprecate the black/white parameters in Typography.material2021 (#13443)"#13463elliette wants to merge 1 commit into
Typography.material2021 (#13443)"#13463Conversation
There was a problem hiding this comment.
Code Review
This pull request reverts the deprecation of the black and white parameters in Typography.material2021, removing the associated deprecation warnings, documentation, and tests. Feedback on the changes notes that the updated documentation introduces inaccuracies regarding platform-specific defaults for the black and white text themes, and suggests retaining the more detailed and accurate platform-dependent documentation.
| /// If [platform] is [TargetPlatform.iOS] or [TargetPlatform.macOS], the | ||
| /// default values for [black] and [white] are [blackCupertino] and | ||
| /// [whiteCupertino] respectively. Otherwise they are [blackMountainView] and | ||
| /// [whiteMountainView]. If [platform] is null then both [black] and [white] | ||
| /// must be specified. |
There was a problem hiding this comment.
The reverted documentation states that macOS defaults to blackCupertino and whiteCupertino, and that other platforms (like Windows and Linux) default to blackMountainView and whiteMountainView. However, looking at Typography._withPlatform, macOS actually defaults to blackRedwoodCity/whiteRedwoodCity, Windows to blackRedmond/whiteRedmond, and Linux to blackHelsinki/whiteHelsinki.
Please keep the more accurate platform-dependent documentation that was introduced in the original PR, rather than reverting to this outdated and incorrect description.
/// The default values for [black] and [white] depend on [platform]:
/// [blackCupertino] and [whiteCupertino] on iOS, [blackRedwoodCity] and
/// [whiteRedwoodCity] on macOS, [blackRedmond] and [whiteRedmond] on
/// Windows, [blackHelsinki] and [whiteHelsinki] on Linux, and
/// [blackMountainView] and [whiteMountainView] otherwise. If [platform] is
/// null then both [black] and [white] must be specified.|
autosubmit label was removed for flutter/packages/13463, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…aphy.material2021` (flutter#13443)" This reverts commit a8549ae.
17cf04c to
7d5c440
Compare
|
Closing because #13434 landed before this did |
This reverts commit a8549ae.
I accidentally added
autosubmitto #13443. I wanted to keep it open until #13446 is merged so we can try out the version placeholder. Reverting for now, and then will re-open after.Pre-Review Checklist
[shared_preferences]///).Text/issue exemption: Pure revert PR.
If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2