Files
swiftcontrol/test/widgets
Jonas Bark a4c1a07baf fix(home): banner highlight keeps its border under reduced motion and follows iOS Reduce Motion
Review fixes for the banner's "Show" highlight:

- Android "Remove animations" squeezed the highlight into ~55 ms, because
  the controller used AnimationBehavior.normal and animations run at 5 %
  speed when the platform flag is set. It now uses
  AnimationBehavior.preserve, so the border flash plays for its full length.
- iOS Reduce Motion only sets AccessibilityFeatures.reduceMotion, which
  MediaQuery does not carry. A new prefersReducedMotion helper also checks
  that flag; it keeps the card still and makes the reveal scroll jump.
- Once the scroll has finished, only cards that are still outstanding get
  highlighted.
- ChainHighlightController, the timing constants and the motion math move to
  lib/widgets/home/chain_highlight.dart. The card-key side effect in
  HomePage.build now runs in a plain loop with a local variable.
- The reduced-motion tests now set the platform's accessibility flags
  instead of overriding MediaQuery. Two new Reduce Motion tests and a
  stale-card test were added. Page tests now record highlights inside the
  pump loop, so a slow machine cannot miss them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 20:51:18 +02:00
..