flutter_image_media

A new Flutter plugin for getting image list from the phone (only android).

Getting Started

To use import

  import 'package:flutter_image_media/flutter_image_media.dart';

To get the list of ImageAlbum

  Liat<ImageAlbum> imageAlbums=FlutterImageMedia.getImages;

The ImageAlbum contains folder/album name and the list of path of the images. this can be assesed using

  ImageAlbum imageAlbum;
  String album=imageAlbum.folderName;
  List<String> imagePaths=imageAlbum.imagePaths;

To get the list of ImageAlbumWithThumbnailPath

 List<ImageAlbumWithThumbnail> images = FlutterImageMedia.getAllImagesWithMiniThumbnail;

The ImageAlbumWithThumbnail contains folder/album name, the list of path of the thumbnail and the list of path of the images. this can be assesed using

  ImageAlbumWithThumbnail imageAlbum;
  String album=imageAlbum.folderName;
  List<String> imagePaths=imageAlbum.imagePaths;
  List<String> thumbnailPaths=imageAlbum.thumbnailPaths;

To get the list of ImageAlbum

  Liat<ImageAlbum> imageAlbums=FlutterImageMedia.getImages;

The ImageAlbum contains folder/album name nad the list of path of the images. this can be assesed using

  ImageAlbum imageAlbum;
  String album=imageAlbum.folderName;
  List<String> imagePaths=imageAlbum._imagePaths;

Libraries

flutter_image_media
image_album
image_album_with_thumbnail

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.