Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

chore(ui): take Gap from the gap package, not through shadcn (#1465)

Aperta
#1,729 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter
Ambito
desktop-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

frontend P3 ui

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.1 to pubspec.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 hide Gap from the shadcn re-export, so the barrel's Gap is the package's own.
  • Files that import package:shadcn_flutter only for Gap import package:gap/gap.dart (or the barrel) instead.
Acceptance
  • Gap resolves to package:gap everywhere in lib/ (no file needs shadcn for it).
  • No visual change; existing tests pass.
Lingua principale
Dart
Stelle
23
Fork
1
Merge medio
31m
PR unite (30g)
570

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QueryaHub/Querya-Desktop

Tutte le issue di QueryaHub/Querya-Desktop

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.