media_collector 0.1.0

Flutter Android iOS

A flutter plugin to get all images and videos from storage. Currently developed for android only.

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;
0
likes
90
pub points
7%
popularity

A flutter plugin to get all images and videos from storage. Currently developed for android only.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

amangautam208@gmail.com

License

unknown (LICENSE)

Dependencies

flutter, path

More

Packages that depend on media_collector