[CHORE]: Script to render every screen in every theme to PNG
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 66/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Dart
- Stelle
- 9
- Fork
- 5
- Merge medio
- 49m
- PR unite (30g)
- 34
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CommandLineCoding/Elephant
-
area: mobile chore good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
CommandLineCoding/Elephant#247 ·
I maintainer di solito rispondono entro 1 giorno
-
area: mobile bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
CommandLineCoding/Elephant#245 ·
I maintainer di solito rispondono entro 1 giorno
-
area: mobile enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
CommandLineCoding/Elephant#183 ·
I maintainer di solito rispondono entro 1 giorno
-
area: mobile difficulty: medium enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
CommandLineCoding/Elephant#249 ·
I maintainer di solito rispondono entro 1 giorno
-
area: mobile enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 79/100
CommandLineCoding/Elephant#246 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CommandLineCoding/Elephant
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
livekit/client-sdk-flutter#1281 ·
I maintainer di solito rispondono entro 4 giorni
-
android bug priority: P1 qa
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
GHRik/bielik_oneclick_launcher#55 ·
I maintainer di solito rispondono entro 1 giorno
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
carp demo apps enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
carp-dk/carp.sensing-flutter#670 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100