Skip to content

Commit 255aed0

Browse files
committed
poll [nfc]: Explain vote count box's inner padding
1 parent 8e05574 commit 255aed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/widgets/poll.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class _PollWidgetState extends State<PollWidget> {
7878
ConstrainedBox(
7979
constraints: const BoxConstraints(minWidth: 25, minHeight: 25),
8080
child: Container(
81+
// Inner padding preserves whitespace even when the text's
82+
// width approaches the button's min-width (e.g. because
83+
// there are more than three digits).
8184
padding: const EdgeInsets.symmetric(horizontal: 4),
8285
decoration: BoxDecoration(
8386
color: theme.colorPollVoteCountBackground,

0 commit comments

Comments
 (0)