Search packages, repositories and app categories

media_collection_previewer cover
Package detailsv0.0.1-dev.3

media_collection_previewer

A versatile and user-friendly Flutter package for efficiently previewing and displaying media collections, such as images, audios and videos, with interactive features.

AndroidiOSWeb
30-day downloads
23
Likes
8
Pub points
125

Install package

flutter pub add media_collection_previewer

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package designed to efficiently preview and display media collections, including images, audio, and video files. It offers an interactive and user-friendly interface for browsing media with smooth transitions and responsive controls. Built for cross-platform use, it supports Android, iOS, and Web, making it ideal for apps requiring rich media exploration. The package simplifies integration of media previews with minimal setup, enhancing user experience in photo galleries, media players, or content management interfaces.

Use cases

  • Photo gallery applications
  • Media content browsing
  • Interactive media sliders
  • Content management dashboards
  • Audio/video playback previews

Key features

  • Cross-platform support (Android, iOS, Web)
  • Interactive media navigation
  • Smooth transition animations
  • Support for images, audio, and video
  • Simple integration with minimal configuration

Suitable for

  • Developers building media-heavy apps
  • UI designers needing interactive previews
  • Apps requiring media collection browsing
  • Educational or creative content platforms
  • Mobile and web applications with rich media

Considerations

  • Requires proper media permissions on mobile platforms
  • May need optimization for large media libraries
  • Limited customization for advanced UI styling
  • Depends on underlying platform media handling
  • Best suited for moderate-sized collections

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

The media_collection_previewer is a versatile Flutter package designed to simplify the way you preview various media files, including images, audio, and video, within your Flutter applications. This package enables developers to open and interact with a comprehensive viewer for media files by simply clicking on them, thereby enhancing the user experience and the overall quality of your application.

Preview

Note: This package is still under development and is subject to change.

Features

  • Supports multiple file formats: Effortlessly preview image, video, and audio files all in one place.
  • Supported image formats: JPEG, PNG, GIF.
  • Supported video formats: MP4, MOV.
  • Supported audio formats: MP3, WAV.
  • Supports media playback from local assets, and remote URLs.

Getting started

To use this package, add media_collection_previewer as a dependency in your pubspec.yaml file.

Installation

In your pubspec.yaml file within your Flutter Project add media_collection_previewer under dependencies:

dependencies:
  media_collection_previewer: <latest_version>

Using it

  • Import the package and create a list of media files to preview.
import 'package:media_collection_previewer/media_collection_previewer.dart';

List<Media> medias = [
  Media(
    id: 1,
    type: MediaType.image,
    path: imagePath,
  ),
  Media(
    id: 2,
    type: MediaType.video,
    url: url,
    thumbnailUrl: thumbnailUrl,
  ),
  Media(
    id: 3,
    type: MediaType.audio,
    path: audioPath,
  ),
];
  • Create a MediaCollection widget and pass the list of media files to it.

final widget = MediaCollection(medias: medias);

This will create a previewer which shows your media files and allows them to be opened and viewed on click.

Additional information

You can check out the example directory for a sample application using this package.

License

web_video_player is licensed under the New BSD License check the License for more details.

Categories

Dependencies

Dependency list 10 items

Source repository

Projects using this package

No data available yet.