media_collector 0.0.1 copy "media_collector: ^0.0.1" to clipboard
media_collector: ^0.0.1 copied to clipboard

outdated

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

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

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, path

More

Packages that depend on media_collector