Skip to content

Commit 2cadc82

Browse files
committed
wip; poll: Adjust size and padding for the poll vote count green box
Signed-off-by: Zixuan James Li <[email protected]>
1 parent c1d1319 commit 2cadc82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/widgets/poll.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ class _PollWidgetState extends State<PollWidget> {
9393
textBaseline: localizedTextBaseline(context),
9494
children: [
9595
ConstrainedBox(
96-
constraints: const BoxConstraints(minWidth: 25),
96+
constraints: const BoxConstraints(minWidth: 44),
9797
child: Container(
98-
height: 25,
99-
padding: const EdgeInsets.symmetric(horizontal: 4),
98+
height: 44,
99+
// This padding is only in effect
100+
// when the vote count has more than one digit.
101+
padding: const EdgeInsets.symmetric(horizontal: 15),
100102
decoration: BoxDecoration(
101103
color: theme.colorPollVoteCountBackground,
102104
border: Border.all(color: theme.colorPollVoteCountBorder),
@@ -105,7 +107,7 @@ class _PollWidgetState extends State<PollWidget> {
105107
child: Text(option.voters.length.toString(),
106108
textAlign: TextAlign.center,
107109
style: textStyleBold.copyWith(
108-
color: theme.colorPollVoteCountText, fontSize: 13))))),
110+
color: theme.colorPollVoteCountText, fontSize: 16))))),
109111
Expanded(
110112
child: Wrap(
111113
spacing: 5,

0 commit comments

Comments
 (0)