[CHORE]: Script to render every screen in every theme to PNG
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 66/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Dart
- Estrellas
- 9
- Forks
- 5
- Merge medio
- 49 min
- PR fusionados (30 d)
- 34
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CommandLineCoding/Elephant
-
area: mobile chore good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
CommandLineCoding/Elephant#247 ·
Los mantenedores suelen responder en 1 día
-
area: mobile bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
CommandLineCoding/Elephant#245 ·
Los mantenedores suelen responder en 1 día
-
area: mobile enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
CommandLineCoding/Elephant#183 ·
Los mantenedores suelen responder en 1 día
-
area: mobile difficulty: medium enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
CommandLineCoding/Elephant#249 ·
Los mantenedores suelen responder en 1 día
-
area: mobile enhancement good first issue
Dificultad 3/5 1-2 días Aptitud para principiantes 79/100
CommandLineCoding/Elephant#246 ·
Los mantenedores suelen responder en 1 día
Todos los issues de CommandLineCoding/Elephant
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
livekit/client-sdk-flutter#1281 ·
Los mantenedores suelen responder en 4 días
-
android bug priority: P1 qa
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
GHRik/bielik_oneclick_launcher#55 ·
Los mantenedores suelen responder en 1 día
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
carp demo apps enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
carp-dk/carp.sensing-flutter#670 ·
-
[BUG] IP 质量类型误判:ISP 静态段被显示为机房Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100