fix: open HTML email links in external browser (S4) #50

Merged
guettlibot merged 1 commits from task/s4-link-handling into main 2026-05-14 09:26:34 +00:00
guettlibot commented 2026-05-14 09:16:00 +00:00 (Migrated from codeberg.org)

Summary

  • flutter_html 3.0 drops links silently when no onLinkTap is provided — clicking any link in an HTML email previously did nothing
  • Add onLinkTap with LaunchMode.externalApplication to _SafeHtml in EmailDetailScreen and to the Html widget in ThreadDetailScreen
  • Unsubscribe chip already used externalApplication; link taps now match

Test plan

  • Existing widget tests pass unchanged
  • task check-fast green

🤖 Generated with Claude Code

## Summary - `flutter_html` 3.0 drops links silently when no `onLinkTap` is provided — clicking any link in an HTML email previously did nothing - Add `onLinkTap` with `LaunchMode.externalApplication` to `_SafeHtml` in `EmailDetailScreen` and to the `Html` widget in `ThreadDetailScreen` - Unsubscribe chip already used `externalApplication`; link taps now match ## Test plan - [x] Existing widget tests pass unchanged - [x] `task check-fast` green 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.