Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#1,729 0 comentários 0 reações 0 responsáveis Ver no GitHub

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
Stack de tecnologia
dart, flutter
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

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.
Linguagem predominante
Dart
Estrelas
23
Forks
1
Merge médio
31min
PRs com merge (30d)
570

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de QueryaHub/Querya-Desktop

Todas as issues de QueryaHub/Querya-Desktop

Issues semelhantes

Mais issues de Dart

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.