New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The behavior of Dismissible with TextFormFields is different for Android and iOS #142447
Comments
The issue has something to do with the field implementing gestures for the text selection. If you replace the field with a Gesture detector and pass I believe that the field widget implements some platform-specific logic that defines (only for iOS) the dragging behavior for the RawGestureDetector underneath. My results by running gesture arena: Android
iOS
|
Thanks for the report. I was able to see the same behavior as observed on both platforms. The same is noticed using the official code sample (by replacing I looked at native iOS app (Reminders) and observed that the swiping from center area which is clickable, is possible. RPReplay-Final1706597997.MOV
Updated the code from above link and running on both platform still gives the same behavior as reported. stable, master flutter doctor -v
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
Expected results
The behavior should be the same on iOS and Android. In my opinion, it should on both platforms be possible to dismiss by sliding the TextFormField.
If the TextField takes up the entire Dismissible, then it will handle the gesture.
This is also not true for iOS.
Actual results
On Android you can dismiss an item by touching the red SizedBox part but also the TextFormField part.
On iOS you can dismiss an item only by touching the red SizedBox part but not the TextFormField part.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Bildschirmaufnahme.2024-01-29.um.17.33.24.mov
Bildschirmaufnahme.2024-01-29.um.17.30.26.mov
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: