letsar / flutter_slidable

A Flutter implementation of slidable list item with directional slide actions.
MIT License
2.7k stars 581 forks source link

TextField blocks swipe gesture on iOS, prevents slidable being opened #504

Open Jakemangan opened 3 days ago

Jakemangan commented 3 days ago

There is already an existing ticket for this issue but I'm opening this as re-emphasis that this problem still exists to try and find a workaround and for others to find the issue if they are searching for it.

I don't believe it is a problem with Slidable, as the same behaviour works on Android without issue.

The issue is that when there is a TextField inside a slidable the field blocks swipe gestures and prevents the slidable from opening.

Here is a SO question about the issue - https://stackoverflow.com/questions/77266979/slidable-widget-swipe-action-issue-on-text-fields-in-ios-flutter

And here is an issue opened on the official Flutter repo, although it looks abandoned - https://github.com/flutter/flutter/issues/142447

Is there any solutions for this problem? Highly annoying that it works okay on Android but not iOS.