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> {
90
90
ConstrainedBox (
91
91
constraints: const BoxConstraints (minWidth: 44 , minHeight: 44 ),
92
92
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.
93
97
padding: const EdgeInsetsDirectional .only (
94
98
end: 5 , top: verticalPadding, bottom: verticalPadding),
95
99
child: Material (
96
100
color: Colors .transparent,
97
101
child: InkWell (
98
102
onTap: () => _toggleVote (option),
99
- child: Ink (
103
+ child: Container (
100
104
// Inner padding preserves whitespace even when the text's
101
105
// width approaches the button's min-width (e.g. because
102
106
// there are more than three digits).
You can’t perform that action at this time.
0 commit comments