chore(ui): take Gap from the gap package, not through shadcn (#1465)
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
- 57/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- desktop-dev
Hướng nghiên cứu
Start with pubspec.yaml and lib/shared/widgets/widgets.dart, then search lib/ for package:shadcn_flutter imports and Gap usages. Add the direct gap dependency and update imports so Gap comes from package:gap or the shared widgets barrel. Done means no file in lib/ needs shadcn for Gap, and existing tests pass with no visual change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #1465 (step 2, second half).
Problem
Gap is used 742 times in 97 files of lib/. It is not a shadcn widget: it comes from the gap package, which shadcn_flutter depends on and re-exports (third_party/shadcn_flutter/lib/shadcn_flutter.dart: export 'package:gap/gap.dart'). Every one of those files therefore depends on shadcn only to get Gap.
Found with a probe on dev (2026-10-18): with every package:shadcn_flutter import and the barrel's re-export removed, Gap is the most frequent undefined name (742).
Change
- Add
gap: ^3.0.1topubspec.yaml(the version shadcn already pulls in, so nothing changes at runtime). - Export it from
lib/shared/widgets/widgets.dart(export 'package:gap/gap.dart';) and hideGapfrom the shadcn re-export, so the barrel'sGapis the package's own. - Files that import
package:shadcn_flutteronly forGapimportpackage:gap/gap.dart(or the barrel) instead.
Acceptance
-
Gapresolves topackage:gapeverywhere inlib/(no file needs shadcn for it). - No visual change; existing tests pass.
- Ngôn ngữ chính
- Dart
- Star
- 23
- Fork
- 1
- Merge trung bình
- 31 phút
- Pull request đã merge (30 ngày)
- 570
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- 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 QueryaHub/Querya-Desktop
-
enhancement ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QueryaHub/Querya-Desktop#1689 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ui(dialogs): make destructive query and DML preview dialogs adaptive and prevent table name overflowĐang mởbug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
QueryaHub/Querya-Desktop#1642 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug error-handling settings
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
QueryaHub/Querya-Desktop#1637 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
QueryaHub/Querya-Desktop#1636 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement marketplace
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QueryaHub/Querya-Desktop#1635 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của QueryaHub/Querya-Desktop
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
CircuitVerse/mobile-app#679 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
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 67/100
PhoebeSoftware/xrooster#41 ·
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 61/100
spotiflacapp/SpotiFLAC-Mobile#687 ·