Skip to content

Slider thumb label is unreadable if accent color is bright and primary color is dark #28706

@Hixie

Description

@Hixie

Slider.label's docs say that the label is painted using ThemeData.accentTextTheme.body2, which appears to be correct (I didn't check), but unfortunately the thumb itself is painted using the primary color, which is not guaranteed to contrast well with the accentTextTheme.

I assume it's supposed to be using the primaryTextTheme? Or the thumb should use the accent color?

cc @HansMuller @gspencergoog

Metadata

Metadata

Assignees

Labels

c: API breakBackwards-incompatible API changesf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions