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

outdated

You can scan photos and albums. Only api, not have ui. you can use the api to create your image picker. or use photo

photo_manager #

A flutter api for photo, you can get photo from ios or android

一个提供相册api的插件, android ios 可用,没有ui,以便于自定义自己的界面, 你可以通过提供的api来制作图片相关的ui或插件

or use photo library , a multi image picker .All UI comes from flutter.

install #

photo: ^0.0.1

import #

import 'package:photo_manager/photo_manager.dart';

use #

see the example/lib/main.dart

or see next

example #

  1. you must requestPermission
var result = await PhotoManager.requestPermission();
if(result == true){
    // success
}else{
    // fail
}
  1. you get all of imagePath(gallery)
List<ImagePathEntity> list = await PhotoManager.getImagePathList();
  1. get image list from imagePath
List<ImageEntity> imageList = await data.imageList;
  1. use the imageEntity
ImageEntity entity = imageList[0];
File file = await entity.file; // image file

List<int> fileData = await entity.fullData; // image file bytes

Uint8List thumbBytes = await entity.thumbData; // thumb data ,you can use Image.memory(thumbBytes); size is 64px*64px;

Uint8List thumbDataWithSize = await entity.thumbDataWithSize(width,height); //Just like thumbnails, you can specify your own size. unit is px;

595
likes
0
pub points
99%
popularity

Publisher

verified publisherfluttercandies.com

You can scan photos and albums. Only api, not have ui. you can use the api to create your image picker. or use photo

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on photo_manager