AI app generator: suggestion cards overflow at larger text sizes
Product impact
- Primary loop layer: UX-Polish
- [ ] Involves data loss, failed capture, or broken sync/trust
Describe the bug
The "Try something like" strip is a fixed 160 pt high. Each card holds up to three lines of callout text at
line height 1.4 plus a compact "Try it" button, inside 20 pt padding, so with larger text the column overflows.
To reproduce
- Set a larger iOS text size.
- Settings → Developer → create an app with AI (the AI app generator page).
Current behavior
The same card in its 160 pt strip, in a widget test on main with real fonts: it overflows at the bottom by 6 pt
at 1.15×, 15 pt at 1.3× and 30 pt at 1.5× text. There are no errors at 1.0×.
Expected behavior
The strip grows with the text size (or the card content scales down).
Evidence
lib/pages/settings/ai_app_generator_page.dart:110—SizedBox(height: 160)lib/pages/settings/ai_app_generator_page.dart:339—_buildSuggestionCard
Fix available
Fixed with a regression test on the fork branch design/v2-step0-tokens (394b5a7e8e). It will be linked from the draft PR.
Found while testing the Omi v2 Flutter restyle on an iPhone, then confirmed against main at 32c2ed22cf.
Fixed in #21341.
- Scaled the
"Try something like"suggestion strip height dynamically withMediaQuery.textScalerOf(context)(160 * math.max(1.0, MediaQuery.textScalerOf(context).scale(16) / 16)). - Added hermetic regression test across 1.0x, 1.15x, 1.3x, and 1.5x text scales (
ai_app_generator_large_text_test.dart) and unreleased changelog fragment.