Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Expose swipe-disable (physics) on TabBarView

Đang mở
#6,746 1 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ó
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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
flutter, python
Lĩnh vực
desktop, frontend

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

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 flet-dev/flet

Tất cả issue của flet-dev/flet

Issue tương tự

Thêm issue về Python

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.