Settings: opening search makes every row jump 12 pt, and the field sits 4 pt off the cards
Product impact
- Primary loop layer: UX-Polish
- [ ] Involves data loss, failed capture, or broken sync/trust
Describe the bug
Tapping the search icon swaps the whole Settings header through an AnimatedSwitcher: the 44 pt header (search
icon, title, close) is replaced by a 56 pt search row, so the list under it moves down 12 pt. It moves back when
search is cancelled. The field starts 16 pt from the edge while the settings cards start at 20 pt.
To reproduce
- Open Settings.
- Tap search, then Cancel.
Current behavior
Every row jumps by 12 pt on open and on cancel, and the field is misaligned with the cards. The header heights
were measured with copies of both headers from main: 44.0 pt and 56.0 pt, at 1.0× and 1.3× text.
Expected behavior
Search opens in place. The header keeps one height, so nothing below it moves, and the field lines up with the cards.
Evidence
lib/pages/settings/settings_drawer.dart:218—_buildHeaderreturns two differently sized headers.lib/pages/settings/settings_drawer.dart:223— search row paddingfromLTRB(md, 0, xs, xs)against the list'slgpadding.lib/pages/settings/settings_drawer.dart:263— the cross-fadingAnimatedSwitcher.
Fix available
Fixed with a regression test on the fork branch design/v2-step0-tokens (aef2356245). 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 #21343.
- Wrapped both normal and search headers in
SizedBox(height: 48)so opening and closing search keeps header height constant and never shifts the settings list below. - Adjusted search header left padding to
OmiSpacing.lg(20 pt) to align flush with the settings cards. - Added hermetic regression widget test (
settings_search_header_stability_test.dart) and unreleased changelog fragment.