Skip to content

Update Divider color documentation for Material 3 - #190535

Closed
jpeiffer wants to merge 2 commits into
flutter:masterfrom
jpeiffer:patch-1
Closed

jpeiffer wants to merge 2 commits into
flutter:masterfrom
jpeiffer:patch-1

Conversation

@jpeiffer

@jpeiffer jpeiffer commented Aug 4, 2026

Copy link
Copy Markdown

Clarify the behavior of the Divider color property in Material 3.

Fixes: #190534

This is only updating the documentation on Divider.color to match the actual behaviour.

Pre-launch Checklist

Clarify the behavior of the Divider color property in Material 3.

Fixes: #190534
@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Aug 4, 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 updates the documentation for the Divider class to clarify how the divider color is determined when Material 3 is enabled. The review feedback suggests improving the documentation style for consistency, specifically by properly formatting references to [ThemeData.useMaterial3] and using the more idiomatic [ColorScheme.outlineVariant] reference.

/// also null, then [ThemeData.dividerColor] is used.
/// also null, then [ThemeData.dividerColor] is used when
/// [ThemeData.useMaterial3] is false and [ColorScheme.outlineVariant]
/// is used when [ThemeData.useMaterial3] is true.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but could we change the order here (i.e. list useMaterial3 is true case first since that is the default)?

@elliette elliette added the CICD Run CI/CD label Aug 5, 2026
@elliette

elliette commented Aug 5, 2026

Copy link
Copy Markdown
Member

Please fix: /home/runner/work/flutter/flutter/packages/flutter/lib/src/material/divider.dart:122: trailing U+0020 space character Thanks!

@elliette
elliette self-requested a review August 11, 2026 17:38
@elliette elliette added the waiting for response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 11, 2026
@dkwingsmt

Copy link
Copy Markdown
Contributor

This PR is ready to port to flutter/packages! 🥳
See guidance and instructions in #188444

@dkwingsmt dkwingsmt added the Decoupling: Port to flutter/packages This PR is ready to be ported to flutter/packages. We will provide instructions to do so. label Aug 25, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

This pull request is being closed because it has not been updated in the last 21 days after a request for more information.

If you are still working on this, please feel free to reopen it or file a new pull request.

Thanks for your contribution.

@github-actions github-actions Bot closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD Decoupling: Port to flutter/packages This PR is ready to be ported to flutter/packages. We will provide instructions to do so. framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages waiting for response The Flutter team cannot make further progress on this issue until the original reporter responds

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Widget Divider not selecting proper color per docs.

3 participants