SlidableController.dispatchEndGesture() reports wrong direction for StillGesture

Đang mở
#438 0 bình luận 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
flutter
Lĩnh vực
mobile

Hướng nghiên cứu

Start in SlidableController.dispatchEndGesture(), which receives the direction from _SlidableGestureDetectorState.handleDragEnd() and ignores which pane is being dragged. Then check how _ActionPaneState.handleEndGestureChanged() picks closeThreshold or openThreshold for a StillGesture. Done means a still gesture on endActionPane opening to the left reports closing as false and uses openThreshold, with a test covering that case.

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

Mô tả

For StillGesture events SlidableController.dispatchEndGesture() uses the 'direction' parameter passed to it by _SlidableGestureDetectorState.handleDragEnd() without taking into account which pane is being dragged. When dragging 'endActionPane' to the left to open it SlidableController.dispatchEndGesture() would generate a StillGesture with 'closing' set to true which is incorrect. As a result '_ActionPaneState.handleEndGestureChanged()' would use 'closeThreshold' instead of 'openThreshold'.

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.