enough_mail_flutter
2.1.2, released a year ago by enough.de
Flutter widgets to view and download email messages using enough_mail.
What it does
Provides MimeMessageViewer to render already‑fetched MIME messages and MimeMessageDownloader to fetch content on demand. It integrates with enough_mail and uses InAppWebView for rich HTML rendering, supporting dark mode and external image blocking.
AI-written summary of version 2.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display email content in a Flutter app
- You already use the enough_mail library for mail handling
- You want built‑in support for HTML rendering, dark mode, and image handling
Skip it when
- You are not building an email client
- You require a pure web solution without native webview
- You need a custom rendering engine not based on InAppWebView
Strengths
- Tight integration with enough_mail
- Supports dark mode and external image blocking
- Allows custom fetch methods and download timeouts
- Uses InAppWebView for accurate HTML rendering
Weaknesses
- Depends on native InAppWebView, adding platform setup
- Requires xml dependency override
- Limited to email use‑case
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 6
Add dependency overrides for xml (^6.0.1) and ensure InAppWebView platform setup (Android/iOS) as per its docs
import 'package:enough_mail/enough_mail.dart';
import 'package:enough_mail_flutter/enough_mail_flutter.dart';
Widget build(MimeMessage mimeMessage) {
return MimeMessageViewer(
mimeMessage: mimeMessage,
blockExternalImages: false,
mailtoDelegate: (uri, msg) async => /* handle mailto */,
);
}Works with
Packages commonly used together with enough_mail_flutter: ones it builds on, ones built on it, and its own family.
- url_launcherenough_mail_flutter depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- loggerenough_mail_flutter depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.
- flutter_inappwebviewenough_mail_flutter depends on itAdd inline WebViews, headless WebViews, and in-app browser windows.
- enough_mailenough_mail_flutter depends on itIMAP, POP3, and SMTP email library with high and low-level APIs and MIME parsing.
- enough_mediaenough_mail_flutter depends on itExtensible collection of media viewers for preview and interactive experiences.
- enough_convertSame familySupport for character encodings and codecs missing from dart:convert.
- enough_icalendarSame familyParse, generate, and respond to iCalendar (.ics) invites in pure Dart.
- enough_ascii_artSame familyGenerates ASCII art from images, FIGlet text banners, Unicode fonts, and emoticons.