TabContext.forBrightness constructor
TabContext.forBrightness(
- Brightness brightness
Implementation
factory TabContext.forBrightness(Brightness brightness) {
const backgroundColor = _transparent;
const chartColor = _grey;
final labelColor = brightness == Brightness.dark ? _white : _black;
final noteLabelColor = brightness == Brightness.dark ? _black : _white;
final noteShapeColor = brightness == Brightness.dark ? _white : _black;
const techniqueColor = _grey;
return TabContext(
backgroundColor: backgroundColor,
chartColor: chartColor,
labelTextColor: labelColor,
noteLabelColor: noteLabelColor,
noteShapeColor: noteShapeColor,
techniqueColor: techniqueColor);
}