update leaderboard text fg color
This commit is contained in:
@@ -211,13 +211,11 @@ class QuoteProvider extends ChangeNotifier {
|
|||||||
Color getLeaderboardEntryFgColor(BuildContext context, int index) {
|
Color getLeaderboardEntryFgColor(BuildContext context, int index) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
return Colors.black; // 1st place
|
|
||||||
case 1:
|
case 1:
|
||||||
return Colors.black; // 2nd place
|
|
||||||
case 2:
|
case 2:
|
||||||
return Colors.black; // 3rd place
|
return Colors.black;
|
||||||
default:
|
default:
|
||||||
return Colors.white; // default for all other entries
|
return Theme.of(context).textTheme.bodyMedium!.color!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user