Repository navigation
fix(app): mobile ergonomics pass — tab bar sits on the system inset, 44pt touch targets, single-counted insets - #14312
Merged
Conversation
#12858 reserved the window's bottom view padding under the home tab bar, which was right for Android's 3-button bar, but it added the inset beneath a 100pt bar that already kept ~27pt of empty space under its icons. On an iPhone the two gaps stack: the icons sit ~74pt above the screen edge, against ~59pt for a platform tab bar (UITabBar is a 49pt row on the 34pt safe area). Split the bar into a 20pt fade and a 52pt tab row that ends exactly where the inset begins, so the inset is the only space under the row on every device (34pt home indicator, 16-48dp Android gesture pill / 3-button bar, or zero). The gradient's fade stop is now derived from the fade height instead of a fraction of a height that grows with the inset. Everything tuned to the old 100pt literal now derives from the bar: the home chat bar offset, the home/conversations/tasks/apps trailing scroll spacers and the Tasks FAB. Those literals ignored the system inset entirely, so on an inset device the last list row ended 34-48pt under the bar, and the apps search results (bottom: 64) under-cleared it on every device. Failure-Class: FC-bottom-control-under-system-inset Verified: flutter test test/widgets/bottom_nav_bar_test.dart (6 passed); the new geometry test fails with kBottomNavRowHeight restored to 80. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The four home tabs are bare icons, and their label strings were only ever sent to analytics, so VoiceOver and TalkBack read nothing for the app's primary navigation. Give each tab a localized label with button and selected state. Conversations, Tasks and Apps reuse existing keys; Home is a new key, translated in all 49 locales (gen-l10n reports the same two pre-existing untranslated keys, memoryAllowUse / memoryDontUse, and no new ones). Co-Authored-By: Claude Fable 5.1 <[email protected]>
Apple's HIG asks for 44x44pt hit targets and Material for 48dp. The home shell's most-used controls were well under both, because each one's touch target was exactly the small shape it painted: - all seven header buttons (settings, search, date filter, sync, task export, show-completed, create-app): 36x36, 8pt apart - the "+" buttons for folders and goals (both tabs): 32x32 - conversation filter chips: 36pt tall - the "clear completed" x on a task section: a bare 14pt icon, and the smallest target in the app guards a destructive action - the section collapse chevrons: ~19pt tall with dead gaps between icon and label - the chat bar's mic: 42pt, nested in the chat bar's own target, so a near miss opened text chat instead of voice HeaderCircleButton keeps the painted circle and centers it in a 44pt target; surrounding margins shrink by the overhang so nothing moves on screen. Chips pad themselves inside a 44pt strip that still occupies 52pt. Task section headers move their vertical padding inside each child so the tappable ones own the header's full 36pt height (a task row starts 4pt below, so there is no room for 44) and reach sideways into the Spacer. The mic owns the chat bar's full height and rounded end. Every converted control also gets a localized screen-reader label from existing keys; none had one. Verified: flutter test test/widgets/header_circle_button_test.dart test/widgets/folder_tabs_tap_target_test.dart test/widgets/goals_widget_performance_test.dart (all passed). Co-Authored-By: Claude Fable 5.1 <[email protected]>
…on bars Seven onboarding cards (sign-in, AI consent, name, language, permissions, permissions checker, speech profile) and both bottom bars on the transcription settings page added MediaQuery.padding.bottom to their own padding and then wrapped their content in SafeArea(top: false), which adds the same inset again. Nothing above them consumes it, so on an iPhone the primary button floated over 2 x 34 + 8 = 76pt of dead space; on Android 16 with a 3-button bar, 104dp. Drop the manual term and let the SafeArea own the inset. Devices that report no inset lay out exactly as before. Failure-Class: FC-bottom-control-under-system-inset Verified: flutter test test/widgets/onboarding_bottom_inset_test.dart passes; with the name card's old padding restored it fails with 68.0 where 34.0 is expected. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…on bar The conversation detail page floats its tab/play bar at a literal bottom: 32 over an extendBody Scaffold. That clears the iPhone home indicator, but Android 16 enforces edge-to-edge (targetSdk 36) and draws a 3-button navigation bar up to 48dp tall over the same strip, covering the lower 16dp of the bar's buttons. The bar now never sits lower than the bottom inset the window reports. iPhone moves by 2pt (32 -> 34); devices with a smaller or zero inset do not move. Failure-Class: FC-bottom-control-under-system-inset Verified: flutter test test/unit/detail_floating_bar_offset_test.dart passes. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
One mobile ergonomics pass, prompted by the bottom tab bar sitting far too high on iPhone after the latest release.
1. Bottom tab bar: one gap under the icons, not two (the reported bug)
#12858 reserved the window's bottom view padding under the home tab bar. That was the right fix for Android's 3-button bar, but it added the inset beneath a 100pt bar that already carried ~27pt of empty space under its icons. On an iPhone the two stack: icon centers sit ~74pt above the screen edge (measured from a device screenshot), versus ~59pt for a platform tab bar such as LinkedIn's.
The bar is now a 20pt fade plus a 52pt tab row that ends exactly where the system inset begins, so the inset is the only space under the row on every device: 34pt home indicator, 16–48dp Android gesture pill / 3-button bar, or zero. Icon centers land at ~60pt on an iPhone 17 Pro simulator.
Everything that was tuned to the old
100literal now derives from the bar (bottomNavBarClearance,bottomNavChatBarOffset,homeChatBarClearance): the home chat bar, the Tasks FAB, and the trailing scroll spacers on all four tabs. Those literals ignored the system inset entirely, so on an inset device the last list row ended 34–48pt under the bar, and the apps search results (bottom: 64) under-cleared it on every device.2. Touch targets under 44pt in the home shell
Apple's HIG asks for 44×44pt and Material for 48dp. Each of these had a target exactly as small as the shape it painted:
Nothing moves on screen:
HeaderCircleButtonkeeps the painted circle and centers it in the larger target, and surrounding margins shrink by the overhang. Task section headers top out at 36pt because a task row starts 4pt below them.3. Screen-reader labels
The four bottom tabs are bare icons whose label strings only ever went to analytics, so VoiceOver/TalkBack announced nothing for the app's primary navigation. Tabs now carry a localized label plus button/selected state, and every control converted in (2) gets a label from existing keys. One new key,
home, translated in all 49 locales.4. Bottom inset counted twice
Seven onboarding cards and both bottom bars on the transcription settings page added
MediaQuery.padding.bottomto their own padding and wrapped their content inSafeArea(top: false). Nothing above consumes the inset, so the primary button floated over 2×34+8 = 76pt of dead space on iPhone (104dp on Android 16 with a 3-button bar). TheSafeAreanow owns it alone.5. Android
The conversation detail page floats its bar at a literal
bottom: 32over anextendBodyScaffold. Android 16 enforces edge-to-edge (targetSdk 36) and draws a 3-button bar up to 48dp tall over that strip, covering the lower 16dp of the bar's buttons. The bar now never sits lower than the reported inset (iPhone moves 2pt; smaller/zero insets do not move).Otherwise Android needs no special-casing for this change: the tab bar reads
viewPadding, which already distinguishes gesture pill, 3-button bar, and the Android 15 opt-out (zero inset). Audited and left alone, with reasons:WillPopScope, 14PopScope, predictive back is on by default at targetSdk 36.windowOptOutEdgeToEdgeEnforcement=trueis dead on Android 16 (honored only through API 35), so Android 15 and 16 run two different inset regimes. Removing it would turn Android 15 edge-to-edge too and needs its own device QA; not in this PR.SystemUiOverlayStyleis set anywhere, so nav-bar icon brightness and the contrast scrim are platform defaults. On a near-black UI this is likely fine; unverified on a device.DismissDirection.horizontalon task rows may losestartToEndswipes to the left-edge back gesture. Needs a device check.Product invariants affected
none
Failure class (fixes)
Failure-Class: FC-bottom-control-under-system-inset
The class's contract is that bottom-anchored chrome reserves the window's bottom view padding and that anything positioned against it carries the same inset "so the pair stays in step". This PR repairs both directions of that boundary: content positioned against the bar that did not carry the inset (tab-page spacers, the Tasks FAB, the conversation bar on Android 16), and chrome that reserved it on top of slack it already had (the tab row) or reserved it twice (onboarding, transcription bars). The guard artifact
app/test/widgets/bottom_nav_bar_test.dartnow also pins that the row ends exactly at the inset and that the derived clearances follow the row.Tests changed alongside the code they assert
bottom_nav_bar_test.dartis extended, not rewritten: the three #12858 assertions (icons clear the inset, lift by exactly the inset,viewPaddingnotpadding) are unchanged and still pass. The new expected values come from platform documentation, not from the implementation: UITabBar's 49pt content row on the 34pt home-indicator safe area (Apple HIG, Tab bars / Layout), Material bottom navigation's 56dp row, and the 44pt / 48dp minimum targets (Apple HIG Buttons; Material Accessibility → Touch targets).Verification
Repository
BasedHardware/omi, branchfix/mobile-bottom-ergonomicsofforigin/main492c62f764, Flutter 3.44.5 (the CI pin).bash app/test.sh— 2021 passed, 5 skipped, 1 failed. The failure istest/unit/search_rank_grouping_test.dart("same-day search hits…"), which this branch does not touch: it assumes 12:00 and 18:00 UTC fall on one local day, and the verifying host is UTC+07. It passes underTZ=UTC(CI's zone); flagged separately.scripts/dev-harness/mobile-verify.sh fast --all— 20 executed, 20 passed (j1 conversation detail, j2 chat, j3 memories, j4 session recovery, j5 capture). The selector fell back to the full suite for this diff.scripts/pr-preflight --lane local --pr-body-file …— 14 checks passed.kBottomNavRowHeightrestored to 80 (Actual: <80.0>); the onboarding inset test fails with the old padding restored (Expected: 34.0, Actual: <68.0>).bash app/scripts/analyze_ratchet.sh— passed, no rule above baseline.flutter gen-l10nreports the same two untranslated keys asmain(memoryAllowUse,memoryDontUse) and none from this PR.BottomNavBar,HeaderCircleButtonandFolderTabsmounted in a local preview entrypoint (gitignored, no auth/backend). Confirmed icon centers ~60pt from the screen edge, the last list row scrolling fully clear of the bar, the FAB riding on the bar, header circles still on the 16pt margins, and — withdebugPaintSizeEnabled— 44pt targets touching and tab targets ending at the inset.🤖 Generated with Claude Code