Skip to content

Commit 72f09c1

Browse files
committed
poll [nfc]: Set vote count box's minHeight with ConstrainedBox
On devices with non-default text scaling, the fixed size vote count box might be too short to fit in the text. We should only set the min height to fix that. Signed-off-by: Zixuan James Li <[email protected]>
1 parent 1c8406f commit 72f09c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/widgets/poll.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ class _PollWidgetState extends State<PollWidget> {
7676
textBaseline: localizedTextBaseline(context),
7777
children: [
7878
ConstrainedBox(
79-
constraints: const BoxConstraints(minWidth: 25),
79+
constraints: const BoxConstraints(minWidth: 25, minHeight: 25),
8080
child: Container(
81-
height: 25,
8281
padding: const EdgeInsets.symmetric(horizontal: 4),
8382
decoration: BoxDecoration(
8483
color: theme.colorPollVoteCountBackground,

0 commit comments

Comments
 (0)