Repository navigation
Conversation
|
Reviewed this against #19238 — nice, well-scoped accessibility fix, and thank you for including a regression test and changelog fragment. app/lib/pages/apps/widgets/category_section.dart
app/test/widgets/apps_category_section_large_text_test.dart
app/changelog/unreleased/20261012-apps-category-rows-text-scaling.json — matches the existing unreleased-fragment schema. One note for maintainers: this PR's checks don't include a Flutter test run, so the new test hasn't been exercised by CI — worth running it locally before merge. Apart from that this looks merge-ready to me; the merge decision is left to the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Confirmed not yet fixed on main (category_section.dart still has hardcoded targetItemHeight/titleSectionHeight/childAspectRatio). Root cause stated, linked real bug #19238, scoped diff (160 lines), regression test added, CI green. Merging.
|
Thanks for reviewing and merging! 🙏 Bounty Payout Details:
|
…21343 follow-ups) (#21425) * fix(app): restore green Flutter tests on main (#21302 #21340 #21341 #21343 follow-ups) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(app): measure category card text heights Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Fixes #19238.
Derives targetItemHeight, titleSectionHeight, and childAspectRatio dynamically based on the reader text scaler in CategorySection (app/lib/pages/apps/widgets/category_section.dart).
Root Cause
Previously, CategorySection hardcoded targetItemHeight = 85.0 and titleSectionHeight = 60.0 with a static childAspectRatio = 0.28. At scaled text sizes (1.15x, 1.3x, 1.5x), the three-line metadata column within SectionAppItemCard (name, category, and rating) exceeded the 85 pt card height and threw layout overflow errors.
Fix Details
final rowText = lineOf(OmiType.body) + 2 + lineOf(OmiType.footnote) + 2 + lineOf(OmiType.caption);
final double targetItemHeight = max(85.0, 16 + max(52.0, rowText) + 1);
final double childAspectRatio = targetItemHeight / (85.0 / 0.28);
Verification