Skip to content
pubscout

enough_media

3.0.0, released a year ago by enough.de

Extensible collection of media viewers for preview and interactive experiences.

$ flutter pub add enough_media
Source repository

What it does

Provides an opinionated framework for media previews and interactions. It handles various media files like images, audio, video, and PDFs using unified MediaProviders and widgets.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display preview and interactive media viewers for images, videos, audio, and PDFs.
  • You want an extensible media viewing framework with built-in Hero animation support.

Skip it when

  • You only need a simple audio player or a standalone video player without preview wrappers.

Strengths

  • Supports multiple media types (image, audio, PDF, video) under a unified provider abstraction.
  • Provides both preview and interactive near-fullscreen widgets with Hero animations.

Weaknesses

  • Opinionated structure may not fit custom bespoke media UI requirements.
  • Depends on several underlying media packages which may increase app size.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
6

For video setup, follow the instructions on the video_player package.

import 'package:enough_media/enough_media.dart';
import 'dart:typed_data';
import 'package:flutter/material.dart';

Widget buildPreview(String name, String mimeType, Uint8List data) {
  final mediaProvider = MemoryMediaProvider(name, mimeType, data);
  return PreviewMediaWidget(
    mediaProvider: mediaProvider,
  );
}

Alternatives

Packages that do the same job and could replace enough_media.

  • just_audio

    If you need a robust, feature-rich audio player without the broader mixed-media viewer framework.

Works with

Packages commonly used together with enough_media: ones it builds on, ones built on it, and its own family.