[CHORE]: Script to render every screen in every theme to PNG
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 66/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Dart
- スター
- 9
- フォーク
- 5
- 平均マージ
- 49分
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandLineCoding/Elephant のほかの issue
-
area: mobile chore good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
CommandLineCoding/Elephant#247 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CommandLineCoding/Elephant#245 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CommandLineCoding/Elephant#183 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile difficulty: medium enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
CommandLineCoding/Elephant#249 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile enhancement good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 79/100
CommandLineCoding/Elephant#246 ·
メンテナーはふだん 1 日以内に返信
CommandLineCoding/Elephant の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
livekit/client-sdk-flutter#1281 ·
メンテナーはふだん 4 日以内に返信
-
android bug priority: P1 qa
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GHRik/bielik_oneclick_launcher#55 ·
メンテナーはふだん 1 日以内に返信
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
carp demo apps enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
carp-dk/carp.sensing-flutter#670 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100