Skip to content

Commit d499b91

Browse files
committed
chore: Temporarily disable onLongPress for poll option remove button
The `onLongPress` callback on the `IconButton` for removing a poll option has been commented out. This is a temporary measure until the minimum SDK version is updated to 3.29.0, as indicated by the added TODO comment.
1 parent 4f8570c commit d499b91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/stream_chat_flutter/lib/src/poll/creator/poll_option_reorderable_list_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ class PollOptionListItem extends StatelessWidget {
129129
style: IconButton.styleFrom(
130130
foregroundColor: colorTheme.textLowEmphasis,
131131
),
132-
onLongPress: () {/* Consume long press */},
132+
// TODO: Enable once we have min SDK set to 3.29.0
133+
// onLongPress: () {/* Consume long press */},
133134
onPressed: switch (onRemove) {
134135
final onRemove? => () => onRemove.call(option),
135136
_ => null,

0 commit comments

Comments
 (0)