chore(ui): take Gap from the gap package, not through shadcn (#1465)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 57/100
- Tipo de issue
- Refatoração
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Domínio
- desktop-dev
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Dart
- Estrelas
- 23
- Forks
- 1
- Merge médio
- 31min
- PRs com merge (30d)
- 570
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de QueryaHub/Querya-Desktop
-
enhancement ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
QueryaHub/Querya-Desktop#1689 ·
Mantenedores costumam responder em até 1 dia
-
ui(dialogs): make destructive query and DML preview dialogs adaptive and prevent table name overflowAbertabug frontend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
QueryaHub/Querya-Desktop#1642 ·
Mantenedores costumam responder em até 1 dia
-
bug error-handling settings
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
QueryaHub/Querya-Desktop#1637 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
QueryaHub/Querya-Desktop#1636 ·
Mantenedores costumam responder em até 1 dia
-
enhancement marketplace
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
QueryaHub/Querya-Desktop#1635 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de QueryaHub/Querya-Desktop
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
atsign-foundation/at_server#2896 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
lugassawan/swe-workbench#823 ·
Mantenedores costumam responder em até 1 dia
-
auto-implement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
bannzai/kashakeibo#142 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Images copied with `adb push` don't show in the wallpaper picker ("No images found on device")Aberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 82/100
meddouribadis/arclauncher#53 ·
Mantenedores costumam responder em até 1 dia
-
p: material_ui package team-design
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
flutter/flutter#195096 · 1 comentário ·
Mantenedores costumam responder em até 1 dia