Skip to content

Commit

Permalink
If a post has negative score, flip arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
CTalvio committed Jul 9, 2023
1 parent a1ad1dc commit 3196d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/community/widgets/post_card_metadata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PostCardMetaData extends StatelessWidget {
: voteType == VoteType.down
? downVoteColor
: theme.textTheme.titleSmall?.color?.withOpacity(0.9),
icon: Icon( voteType == VoteType.down ? Icons.arrow_downward : Icons.arrow_upward,
icon: Icon( voteType == VoteType.up ? Icons.arrow_upward : (voteType == VoteType.down ? Icons.arrow_downward : (score < 0 ? Icons.arrow_downward : Icons.arrow_upward)),
size: 18.0,
color: voteType == VoteType.up
? upVoteColor
Expand Down

0 comments on commit 3196d1a

Please sign in to comment.