feat: pull-to-refresh on email list screen

Wrapped the stream body in RefreshIndicator calling syncEmails.
Empty-state is now a scrollable ListView so the pull gesture triggers
even when the folder contains no messages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Güttler
2026-04-24 16:44:53 +02:00
co-authored by Claude Sonnet 4.6
parent 39c3d1ea1a
commit 14b1ee14ac
3 changed files with 30 additions and 21 deletions
-8
View File
@@ -18,14 +18,6 @@ Then commit.
## Tasks
## Pull-to-refresh on email list
`EmailListScreen` has a manual sync icon button but no swipe-to-refresh gesture.
Wrap the `StreamBuilder` result body in a `RefreshIndicator` that calls the
same sync trigger as the icon button.
File: `lib/ui/screens/email_list_screen.dart`
## Mark as unread button in email detail
`EmailRepository.setFlag(emailId, seen: false)` already exists. Add a