搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫saedkhaled/media_collection_previewer

media_collection_previewer

saedkhaled/media_collection_previewer open-source repository details.

media_collection_previewer 專案封面
星標
2
分支
2
最近推送(UTC)
2023年7月24日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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.

saed khaled GitHub avatar
GitHub 作者

saed khaled ↗

Senior Mobile Developer with 6+ years experience in Programming the most used languages: Swift, Java, Kotlin, Flutter

Turkey - Istanbul
語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 13 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗