Skip to content

Revert "[material_ui] Deprecate the black/white parameters in Typography.material2021 (#13443)" - #13463

Closed
elliette wants to merge 1 commit into
flutter:mainfrom
elliette:revert-deprecation-pr
Closed

elliette wants to merge 1 commit into
flutter:mainfrom
elliette:revert-deprecation-pr

Conversation

@elliette

Copy link
Copy Markdown
Member

This reverts commit a8549ae.

I accidentally added autosubmit to #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

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-assist bot 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

  1. 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

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Oct 27, 2026
@elliette
elliette requested a review from QuncCccccc October 27, 2026 19:50
@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Oct 27, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment on lines +167 to +171
/// 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

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.

@QuncCccccc QuncCccccc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@elliette elliette added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes autosubmit Merge PR when tree becomes green via auto submit App labels Oct 27, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 27, 2026
@auto-submit

auto-submit Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

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.

@elliette
elliette force-pushed the revert-deprecation-pr branch from 17cf04c to 7d5c440 Compare October 28, 2026 20:08
@elliette

Copy link
Copy Markdown
Member Author

Closing because #13434 landed before this did

@elliette elliette closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants