File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,17 @@ class _PollWidgetState extends State<PollWidget> {
9090 ConstrainedBox (
9191 constraints: const BoxConstraints (minWidth: 44 , minHeight: 44 ),
9292 child: Padding (
93+ // For accessibility, the touch target is padded to be larger
94+ // than the vote count box. Still, we avoid padding at the
95+ // start because we want to align all the poll options to the
96+ // surrounding messages.
9397 padding: const EdgeInsetsDirectional .only (
9498 end: 5 , top: verticalPadding, bottom: verticalPadding),
9599 child: Material (
96100 color: Colors .transparent,
97101 child: InkWell (
98102 onTap: () => _toggleVote (option),
99- child: Ink (
103+ child: Container (
100104 // Inner padding preserves whitespace even when the text's
101105 // width approaches the button's min-width (e.g. because
102106 // there are more than three digits).
You can’t perform that action at this time.
0 commit comments