Skip to content

A flutter plugin to get all images and videos from storage.

License

Notifications You must be signed in to change notification settings

amangautam1/Media_Collector

Repository files navigation

media_collector

A flutter plugin to get all images and videos from storage. Supports Android only

Usage

Add this to pubspec.yaml

dependencies:
 media_collector: ^0.0.1

Import the followings.

import  'package:media_collector/media_collector.dart';
import  'package:media_collector/model/image.dart';
import  'package:media_collector/model/video.dart';

And get images and videos as below,

List<Images> images =  await MediaCollector.getImages;
List<Videos> videos =  await MediaCollector.getVideos;

The output will be list of Images/Videos objects. The structure of both type of objects is as follows,

String fileName;
String path;
double size;  //in KB
DateTime lastModified;
String directory;
String extention;

About

A flutter plugin to get all images and videos from storage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published