getLabelBackgroundColor method
- BuildContext context
Implementation
getLabelBackgroundColor(BuildContext context) {
switch (this) {
case LearningStatus.noStart:
return Theme.of(context).colorScheme.surface;
case LearningStatus.inProgress:
return Theme.of(context).colorScheme.secondaryContainer;
case LearningStatus.completed:
return Theme.of(context).colorScheme.surfaceVariant;
case LearningStatus.all:
return Theme.of(context).colorScheme.surfaceVariant;
}
}