[CHORE]: Script to render every screen in every theme to PNG
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
- 66/100
Direção de pesquisa
Read mobile/test/ui_smoke_test.dart for the provider setup and sample data, then inspect mobile/assets/fonts/Inter/ and the Flutter test APIs for capturing images. Build a test-based script covering the listed screens, themes, and sizes, with PNG output outside the repository; document how to run it in CONTRIBUTING.md. Done when the requested screens can be rendered with the bundled fonts and the instructions work for UI pull requests.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Context
While redesigning the app (#224) it was very useful to render every screen, in every theme, to PNG files with sample data and the real Inter font, and look at them side by side. That made layout problems obvious without a phone (one of them became #240). The script that did this wasn't committed.
What to do
- Add a test-based script (e.g.
mobile/tool/screenshots_test.dart, not run by defaultflutter test) that renders the main screens (sign-in, register, chat list, chat, group chat, contact and group info, new chat, settings pages) with sample data. - Load the bundled Inter font and Material Icons, so text renders properly instead of the test font.
- Choose themes and sizes by environment variables, e.g.
THEMES=frost,nebula, and write the PNGs to a folder outside the repo. - Document how to run it in
CONTRIBUTING.md, for UI pull requests.
Where to look
mobile/test/ui_smoke_test.dart already sets up the providers and sample data; mobile/assets/fonts/Inter/.
Good to know
Capture with a RepaintBoundary around the app and toImage() inside tester.runAsync. Screens with entrance animations need a few seconds of pump first.
- Linguagem predominante
- Dart
- Estrelas
- 9
- Forks
- 5
- Merge médio
- 49min
- PRs com merge (30d)
- 34
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem 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 CommandLineCoding/Elephant
-
area: mobile chore good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
CommandLineCoding/Elephant#247 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
CommandLineCoding/Elephant#245 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
CommandLineCoding/Elephant#183 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile difficulty: medium enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 56/100
CommandLineCoding/Elephant#249 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile enhancement good first issue
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 79/100
CommandLineCoding/Elephant#246 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de CommandLineCoding/Elephant
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100
livekit/client-sdk-flutter#1281 ·
Mantenedores costumam responder em até 4 dias
-
android bug priority: P1 qa
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
GHRik/bielik_oneclick_launcher#55 ·
Mantenedores costumam responder em até 1 dia
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
carp demo apps enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
carp-dk/carp.sensing-flutter#670 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100