useM2StyleDividerInM3 property

bool useM2StyleDividerInM3
final

Determines if M2 style opacity based divider is used in Material 3.

Material 3 uses ColorScheme.outlineVariant in its default Divider style. Set this to false to use Material 2 style Divider in Material 3, that is black with alpha 1F in light theme and white with alpha 1F in dark theme.

The primary tinted ColorScheme.outlineVariant may not work universally on all background colors. The white and black variants with some transparency works well on all background colors.

Defaults to false.

Implementation

final bool useM2StyleDividerInM3;