Updated icon and match tile icon style
This commit is contained in:
@@ -269,23 +269,21 @@ class _MatchTileState extends State<MatchTile> {
|
||||
}
|
||||
|
||||
Icon getMvpIcon() {
|
||||
const Icon(Icons.emoji_events, size: 20, color: Colors.amber);
|
||||
final icon = getRulesetIcon(widget.match.game.ruleset);
|
||||
|
||||
switch (widget.match.game.ruleset) {
|
||||
case Ruleset.singleWinner:
|
||||
return const Icon(Icons.emoji_events, size: 20, color: Colors.amber);
|
||||
return Icon(icon, size: 20, color: Colors.amber);
|
||||
case Ruleset.singleLoser:
|
||||
return const Icon(
|
||||
Icons.sentiment_dissatisfied_outlined,
|
||||
size: 20,
|
||||
color: Colors.blue,
|
||||
);
|
||||
return Icon(icon, size: 20, color: Colors.blue);
|
||||
case Ruleset.lowestScore:
|
||||
return const Icon(Icons.arrow_downward, size: 20, color: Colors.orange);
|
||||
return Icon(icon, size: 20, color: Colors.orange);
|
||||
case Ruleset.highestScore:
|
||||
return const Icon(Icons.arrow_upward, size: 20, color: Colors.green);
|
||||
default:
|
||||
return const Icon(Icons.emoji_events, size: 20, color: Colors.amber);
|
||||
return Icon(icon, size: 20, color: Colors.green);
|
||||
case Ruleset.multipleWinners:
|
||||
return Icon(icon, size: 20, color: Colors.amber);
|
||||
case Ruleset.placement:
|
||||
return Icon(icon, size: 20, color: Colors.deepOrangeAccent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user