feat: mark as unread button in email detail screen

Added mark_email_unread_outlined icon to the toolbar. Calls setFlag(seen:false)
then pops back to the list so the email reappears as unread.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Güttler
2026-04-24 16:46:09 +02:00
co-authored by Claude Sonnet 4.6
parent 14b1ee14ac
commit cdd5e5a6fc
3 changed files with 13 additions and 9 deletions
-9
View File
@@ -18,15 +18,6 @@ Then commit.
## Tasks
## Mark as unread button in email detail
`EmailRepository.setFlag(emailId, seen: false)` already exists. Add a
"Mark as unread" icon button (or overflow menu item) in `EmailDetailScreen`
that calls `setFlag(seen: false)` then pops the screen so the message
reappears as unread in the list.
File: `lib/ui/screens/email_detail_screen.dart`
## Quote original message in reply, and add Forward button
When replying, `prefillBody` is never set so compose opens with an empty body.