Skip to content

Commit 018af0a

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 d6e1715 commit 018af0a

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
@@ -76,10 +76,12 @@ class _PollWidgetState extends State<PollWidget> {
7676
textBaseline: localizedTextBaseline(context),
7777
children: [
7878
ConstrainedBox(
79-
constraints: const BoxConstraints(minWidth: 25),
79+
constraints: const BoxConstraints(minWidth: 44),
8080
child: Container(
81-
height: 25,
82-
padding: const EdgeInsets.symmetric(horizontal: 4),
81+
height: 44,
82+
// This padding is only in effect
83+
// when the vote count has more than one digit.
84+
padding: const EdgeInsets.symmetric(horizontal: 15),
8385
decoration: BoxDecoration(
8486
color: theme.colorPollVoteCountBackground,
8587
border: Border.all(color: theme.colorPollVoteCountBorder),
@@ -88,7 +90,7 @@ class _PollWidgetState extends State<PollWidget> {
8890
child: Text(option.voters.length.toString(),
8991
textAlign: TextAlign.center,
9092
style: textStyleBold.copyWith(
91-
color: theme.colorPollVoteCountText, fontSize: 13))))),
93+
color: theme.colorPollVoteCountText, fontSize: 16))))),
9294
Expanded(
9395
child: Wrap(
9496
spacing: 5,

0 commit comments

Comments
 (0)