[CHORE]: Script to render every screen in every theme to PNG
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 66/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Dart
- Étoiles
- 9
- Forks
- 5
- Merge moyen
- 49 min
- PR mergées (30 j)
- 34
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommandLineCoding/Elephant
-
area: mobile chore good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
CommandLineCoding/Elephant#247 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
CommandLineCoding/Elephant#245 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
CommandLineCoding/Elephant#183 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile difficulty: medium enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 56/100
CommandLineCoding/Elephant#249 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile enhancement good first issue
Difficulté 3/5 1-2 jours Accessibilité débutants 79/100
CommandLineCoding/Elephant#246 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de CommandLineCoding/Elephant
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
livekit/client-sdk-flutter#1281 ·
Les mainteneurs répondent en général sous 4 jours
-
android bug priority: P1 qa
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
GHRik/bielik_oneclick_launcher#55 ·
Les mainteneurs répondent en général sous 1 jour
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
carp demo apps enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
carp-dk/carp.sensing-flutter#670 ·
-
[BUG] IP 质量类型误判:ISP 静态段被显示为机房Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100