Files
SpotiFLAC-Mobile/lib/widgets
zarzet 2d9af84788 perf(desktop): rebuild only the arrows when a shelf is hovered
DesktopScrollArrows kept hover in setState, so each pointer enter and
exit called the builder again and rebuilt the shelf's ListView and every
visible card (Home shelves, artist discography, search shelves). Moving
the pointer down Home crossed each shelf twice.

Hover now lives in a ValueNotifier and only the arrow layer listens. When
not hovered it is a zero-size child, which paints and hits nothing, as
the missing child did before.

Measured in test/desktop_scroll_arrows_test.dart with six visible cards
that keep their own hover state: hovering one card rebuilt all six
before, and rebuilds only the hovered card now; the shelf builder runs
once across enter, move and exit.
2026-11-01 19:19:10 +07:00
..