fix(detail): auto-dismiss "Load remote images" snack bar #548

Merged
guettlibot merged 1 commits from refs/pull/548/head into main 2026-06-08 19:59:51 +00:00
1 Commits
Author SHA1 Message Date
Agentloop Bot b3b213b7d7 fix(detail): auto-dismiss "Load remote images" snack bar (#484)
The "Load remote images" snack bar in the single-mail and thread views
never disappeared. Flutter's SnackBar defaults to persist=true whenever
an action is provided (see flutter/lib/src/material/snack_bar.dart:
`persist = persist ?? action != null`), which short-circuits the
duration-based dismiss timer inside ScaffoldMessengerState.build — so
the explicit `duration: 3s` had no effect because the "View" action
made the snack bar persistent.

Pass `persist: false` explicitly so the 3-second timer fires and the
snack bar slides away on its own, while the "View" action button still
works to navigate to the trusted-senders settings.

dart format, dart analyze, all 174 widget tests and 552 unit tests pass
locally. The pre-commit `dart-check` hook (which runs via dagger) was
skipped because the local sandbox cannot pull dagger's BuildKit image;
CI will run the full check-fast pipeline on this PR.

Closes #484
2026-06-08 17:22:45 +00:00