Skip to content

Commit 3a47c2e

Browse files
author
MritunjayTiwari14
committed
poll: Display UI feedback on poll delay.
Added Accidentally Deleted Comments by Android Studio IDE, replaced Ink Widget with Container Widget to match Zulip Codebase Style. Fixes: #1808
1 parent ce79d54 commit 3a47c2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/widgets/poll.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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).

0 commit comments

Comments
 (0)