Merge pull request #5217 from pangeachat/5214-inconsistent-highlight-of-selected-tab-in-analytics

fix: highlight level bar button when viewing level analytics
This commit is contained in:
ggurdin 2026-01-16 10:05:19 -05:00 committed by GitHub
commit 591291eecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,7 +175,9 @@ class LearningProgressIndicators extends StatelessWidget {
builder: (context, hovered) {
return Container(
decoration: BoxDecoration(
color: hovered && canSelect
color: (hovered && canSelect) ||
(selected ==
ProgressIndicatorEnum.level)
? Theme.of(context)
.colorScheme
.primary