Apps: category rows overflow at larger text sizes
Product impact
- Primary loop layer: UX-Polish
- [ ] Involves data loss, failed capture, or broken sync/trust
Describe the bug
Each Apps category section is a fixed height: rows are 85 pt and the title band 60 pt, whatever the text size. With larger text, each app card's name / category / rating column no longer fits its row.
To reproduce
- iOS Settings → Display & Brightness → Text Size: one or two steps larger (or Accessibility → Larger Text).
- Open Apps.
Current behavior
Measured with a widget test on main (390 pt wide, real fonts, three apps with ratings): each card overflows at
the bottom by 6.3 pt at 1.15×, 17 pt at 1.3× and 31 pt at 1.5× text. There are no errors at 1.0×.
Expected behavior
Rows grow with the text (the card width can stay the same).
Evidence
lib/pages/apps/widgets/category_section.dart:43—targetItemHeight = 85.0lib/pages/apps/widgets/category_section.dart:47—titleSectionHeight = 60.0
Suggested fix
Derive the row and title heights from the scaled text heights, and keep the aspect ratio from those.
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 #21340.
- Scaled argetItemHeight dynamically with MediaQuery.textScalerOf(context) over the card text line heights (ody, ootnote, caption).
- Scaled itleSectionHeight dynamically with OmiType.title2.
- Dynamically adjusted childAspectRatio = targetItemHeight / (85.0 / 0.28) so app cards preserve their width while expanding vertically.
- Added hermetic regression widget test across 1.0x, 1.15x, 1.3x, and 1.5x text scales (pps_category_section_large_text_test.dart) and unreleased changelog fragment.