Skip to content
8 changes: 3 additions & 5 deletions packages/material_ui/lib/src/divider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class Divider extends StatelessWidget {
/// The color to use when painting the line.
///
/// If this is null, then the [DividerThemeData.color] is used. If that is
/// also null, then [ThemeData.dividerColor] is used.
/// also null, then this defaults to [ColorScheme.outlineVariant], or to
/// [ThemeData.dividerColor] if [ThemeData.useMaterial3] is false.
/// {@endtemplate}
///
/// <callout-box>
Expand Down Expand Up @@ -321,10 +322,7 @@ class VerticalDivider extends StatelessWidget {
/// also null, then this defaults to 0.0.
final double? endIndent;

/// The color to use when painting the line.
///
/// If this is null, then the [DividerThemeData.color] is used. If that is
/// also null, then [ThemeData.dividerColor] is used.
/// {@macro material_ui.Divider.color}
///
/// <callout-box>
///
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog: |
- Corrects the `Divider.color` and `VerticalDivider.color` documentation to describe the Material 3 fallback (`ColorScheme.outlineVariant`).
version: patch
Loading