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

chore(deps): drop shadcn_flutter: barrel re-export, imports, third_party, guard (#1465)

Aberta
#1,736 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
38/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
dart, flutter

Direção de pesquisa

Start with lib/shared/widgets/widgets.dart, shared_does_not_import_shadcn_test.dart, and the shadcn_flutter entries in pubspec.yaml; the issue describes the affected imports and dependency cleanup. Check how the existing guard test is structured, then use the stated grep and flutter pub get checks as initial verification. Done means no package references remain in lib/ or the dependency configuration, tests and goldens pass, and Linux, Windows, and macOS release builds succeed.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

frontend P2 ui

Part of #1465 (step 6, the last).

Problem

After #1729–#1735 nothing in lib/ needs shadcn, but about 500 files still get Flutter itself (Text, Widget, setState, Row, BuildContext...) through export 'package:shadcn_flutter/shadcn_flutter.dart' in lib/shared/widgets/widgets.dart, and 59 files import the package directly. A probe on dev (2026-10-18) that removed the import from all of them left 174 files needing only a Flutter import.

Change
  • Add import 'package:flutter/widgets.dart'; (or material.dart) where a file used the barrel for Flutter types.
  • Remove the shadcn re-export from the barrel and every package:shadcn_flutter import.
  • Drop third_party/shadcn_flutter and its dependency_overrides / dependencies entries; flutter pub get.
  • Guard test: no package:shadcn_flutter anywhere in lib/ (extends shared_does_not_import_shadcn_test.dart).
Acceptance
  • grep -r "package:shadcn_flutter" lib is empty; the package is gone from pubspec.yaml and third_party/.
  • All tests and goldens pass; release builds for Linux, Windows and macOS build.
Linguagem predominante
Dart
Estrelas
23
Forks
1
Merge médio
35min
PRs com merge (30d)
497

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.