Skip to content
pubscout

enough_mail_flutter

2.1.2, released a year ago by enough.de

Flutter widgets to view and download email messages using enough_mail.

$ flutter pub add enough_mail_flutter
Source repository

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.