Skip to content

Commit

Permalink
Show number of votes, fixes #292
Browse files Browse the repository at this point in the history
  • Loading branch information
kejml committed Feb 17, 2022
1 parent fd89d7d commit 9057856
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/components/post/PostThumbs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ class PostThumbs extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Padding(
padding: const EdgeInsets.only(top: 0),
padding: const EdgeInsets.only(top: 0, right: 5),
child: Icon(
isNegative ? Icons.thumb_down : Icons.thumb_up,
size: 18,
color: isNegative ? colors.danger : colors.success,
),
),
Text(
items.length.toString(),
style: TextStyle(fontSize: 14),
),
Expanded(
child: Wrap(children: avatars),
)
Expand Down

0 comments on commit 9057856

Please sign in to comment.