Expose swipe-disable (physics) on TabBarView
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
- 55/100
Hướng nghiên cứu
Bắt đầu bằng cách lần theo API TabBarView của flet đến hành vi của Flutter TabBarView, sử dụng NeverScrollableScrollPhysics() làm tham chiếu để vô hiệu hóa các thao tác vuốt. Xác nhận rằng các tab vẫn chuyển đổi được thông qua thao tác nhấn vào TabBar và rằng tùy chọn được yêu cầu ngăn lỗi chặn con trỏ được mô tả trên màn hình cảm ứng Linux.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Use case
On Linux desktop touchscreens, a GNOME three-finger workspace-switch gesture performed over the app window permanently wedges the TabBarView subtree's pointer input. The compositor steals the touch sequence mid-drag, the drag-time ignorePointer gate that Flutter engages over TabBarView/PageView content (see flutter/flutter#148318 for the gating mechanism) is never released, and from then on every control inside the tab content is unclickable until app restart — in our case a clinical app's primary action button. Controls outside the subtree (including the TabBar itself) keep working, which is how we isolated it with tap probes inside vs outside the subtree.
We're preparing a minimal-Dart-repro report against flutter/flutter for the underlying bug and will cross-link it here.
Request
Flutter's escape hatch is TabBarView(physics: NeverScrollableScrollPhysics()): with no drag recognizer, the subtree never engages the pointer gate and this failure class disappears entirely. flet 0.86 exposes no physics (or other swipe toggle) on TabBarView.
Could a physics property — or a simpler swipeable: bool — be added to TabBarView? Tabs would then switch via TabBar taps only, which survive the gesture fine. For touch-first desktop deployments this is also a robustness win independent of the upstream bug (accidental horizontal drags can no longer half-switch pages).
Environment
flet / flet-charts / flet-desktop 0.86.4 (Flutter 3.44.8), Linux (GNOME on Wayland, app under Xwayland), touchscreen hardware. Happy to provide the probe event logs.
- Ngôn ngữ chính
- Python
- Star
- 17.1k
- Fork
- 708
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 46
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flet-dev/flet
-
bug controls
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: Interactive Viewer renders grey text when passed alignmentCó thể đã có người làm @ndonkoHenri đã nhận 5 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flet-dev/flet#6744 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature: Dropdown on_click eventĐang mởfeature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của flet-dev/flet
Issue tương tự
-
Claiming namespace `apoint`Đang mởnamespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
EclipseFdn/open-vsx.org#13573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
collective/icalendar#1854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rancher/rancher-ai-agent#412 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
TUDelftGeodesy/DePSI#134 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
HenriquesLab/rxiv-maker#335 ·