Repository navigation
fix(settings): scale AI app generator suggestion strip height with text size (#19239) - #21341
Conversation
|
Thanks for this clean, well-scoped fix for #19239 — nice first contribution. Review notes on the changed files:
One minor, non-blocking observation: with Android 14's non-linear text scaling, Left a positive signal. No Flutter test workflow appears to have run on this PR yet (only a neutral AI-reviewer check), so from static review this looks ready — the new test will get its first CI exercise when a maintainer merges or triggers a run. Filed by the automated maintainer-review bot on behalf of the Omi 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.
Mobile bug fix: suggestion-strip height now scales with MediaQuery.textScalerOf per issue #19239; verified bug still present on main (height: 160 is unscaled), small scoped diff with a new regression widget test across 4 text scales. Confidence 5/5.
|
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 <[email protected]> * fix(app): measure category card text heights Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Fixes #19239.
Scales the height of the suggestion strip in
AiAppGeneratorPage(app/lib/pages/settings/ai_app_generator_page.dart) dynamically withMediaQuery.textScalerOf(context).Root Cause
Previously, the horizontal suggestion cards strip (
"Try something like") was wrapped in a fixedSizedBox(height: 160). Each_buildSuggestionCardholds up to 3 lines ofOmiType.callouttext (height: 1.4) plus a compact"Try it"button inside 20 pt padding. At larger text sizes (1.15x, 1.3x, 1.5x), the column inside the card exceeded the 160 pt height and overflowed at the bottom by 6 pt to 30 pt.Fix Details
SizedBoxheight with the active text scale factor while preserving the 160 pt baseline:Verification
app/test/widgets/settings/ai_app_generator_large_text_test.dartpumpingAiAppGeneratorPageacross1.0x,1.15x,1.3x, and1.5xtext scales on a 390 pt viewport and asserting zero overflow exceptions.app/changelog/unreleased/20261012-ai-app-generator-suggestion-text-scaling.json.