TextField blocks swipe gesture on iOS, prevents slidable being opened

Đang mở
#504 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
dart, ios
Lĩnh vực
mobile

Hướng nghiên cứu

The payload names no source files, so start by reproducing the problem: put a TextField inside a Slidable and try a swipe on an iOS simulator, then on Android to compare. The linked Flutter issue and Stack Overflow question describe the same symptom and may point to the gesture handling involved. Done means a swipe on the text field opens the Slidable on iOS, with the reproduction and fix confirmed on both platforms.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Dart
Star
2.9k
Fork
646
Merge trung bình
5 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của letsar/flutter_slidable

Tất cả issue của letsar/flutter_slidable

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.