enough_media
3.0.0, released a year ago by enough.de
Extensible collection of media viewers for preview and interactive experiences.
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.
80Compare
Works with
Packages commonly used together with enough_media: ones it builds on, ones built on it, and its own family.
- path_providerenough_media depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- video_playerenough_media depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- photo_viewenough_media depends on itPhoto View provides a gesture sensitive zoomable widget. Photo View is largely used to show interactive images and other stuff such as SVG.
- chewieenough_media depends on itVideo player widget with Material/Cupertino controls
- pdfrxenough_media depends on itFast, cross‑platform PDF viewer and editor widget for Flutter apps.
- chewie_audioenough_media depends on itAn audio player for Flutter with Cupertino and Material play controls.
- enough_convertSame familySupport for character encodings and codecs missing from dart:convert.
- enough_mailSame familyIMAP, POP3, and SMTP email library with high and low-level APIs and MIME parsing.