diff --git a/lib/community/widgets/post_card_metadata.dart b/lib/community/widgets/post_card_metadata.dart index 53b709b9c..9ef507dcd 100644 --- a/lib/community/widgets/post_card_metadata.dart +++ b/lib/community/widgets/post_card_metadata.dart @@ -1,3 +1,4 @@ +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:lemmy_api_client/v3.dart'; @@ -138,14 +139,25 @@ class ScorePostCardMetaData extends StatelessWidget { crossAxisAlignment: WrapCrossAlignment.center, runAlignment: WrapAlignment.center, children: [ - Icon(Icons.arrow_upward, size: 17.0, color: color), + SizedBox( + width: 21, + height: 17, + child: Stack( + children: [ + Align(alignment: Alignment.topLeft, child: Icon(Icons.arrow_upward, size: 13.5, color: voteType == -1 ? readColor : color)), + Align( + alignment: Alignment.bottomRight, + child: Icon(Icons.arrow_downward, size: 13.5, color: voteType == 1 ? readColor : color), + ), + ], + ), + ), ScalableText( formatNumberToK(score ?? 0), semanticsLabel: l10n.xScore(formatNumberToK(score ?? 0)), fontScale: state.metadataFontSizeScale, style: theme.textTheme.bodyMedium?.copyWith(color: color), ), - Icon(Icons.arrow_downward, size: 17.0, color: color), ], ); }