Giter VIP home page Giter VIP logo

photo_album_manager's Introduction

photo_album_manager

This is the plug-in can quickly get album resources, support for android and iOS

这是可以快速获取相册资源的插件,支持安卓和iOS

demo

二维码

install

dependencies: photo_album_manager: ^1.2.0

import

import 'package:photo_album_manager/photo_album_manager.dart';

example

//先权限申请
PermissionStatus status = await PhotoAlbumManager.checkPermissions();
if (status == PermissionStatus.granted) {
  Toast.show("权限同意", context);
} else {
  Toast.show("权限拒绝", context);
}
//再获取相册资源
List<AlbumModelEntity> photos = await PhotoAlbumManager.getDescAlbum(maxCount: 50);
//或者直接获取相册资源(权限内部判断)
List<AlbumModelEntity> photos = await PhotoAlbumManager.getDescAlbum(maxCount: 50);

api

/*检查必要权限*/
static Future<PermissionStatus> checkPermissions();

/*判断权限状态是否授予*/
static bool statusIsGranted(PermissionStatus status);

/*获取相册资源(降序) maxCount 为null 获取全部资源*/
static Future<List<AlbumModelEntity>> getDescAlbum({int maxCount});

/*获取相册资源(升序) maxCount 为null 获取全部资源*/
static Future<List<AlbumModelEntity>> getAscAlbum({int maxCount});

/*获取相册图片资源(升序) maxCount 为null 获取全部资源*/
static Future<List<AlbumModelEntity>> getAscAlbumImg({int maxCount});

/*获取相册视频资源(升序) maxCount 为null 获取全部资源*/
static Future<List<AlbumModelEntity>> getAscAlbumVideo({int maxCount});

/*获取相册图片资源(降序) maxCount 为null 获取全部资源*/
static Future<List<AlbumModelEntity>> getDescAlbumImg({int maxCount});

/*获取相册视频资源(降序) maxCount 为null 获取全部资源*/
static Future<List<AlbumModelEntity>> getDescAlbumVideo{int maxCount});

/*通过唯一标识localIdentifier 获取资源(原图、原视频)*/
static Future<AlbumModelEntity> getOriginalResource(String localIdentifier,
{void onProgress(double progress), void onError(String error)});

log

1.2.0 版本更新内容
*适配最新stable

```dart
1.1.9 版本更新内容
*优化安卓相册缓存更新不及时问题

1.1.8 版本更新内容
*优化安卓相册缓存更新不及时问题

1.1.7 版本更新内容
*优化安卓获取缩略图代码

1.1.6 版本更新内容
*优化安卓获取缩略图代码

1.1.5 版本更新内容
*优化权限相关

1.1.4 版本更新内容
*优化pubspec.yaml文件部分语法问题

1.1.3 版本更新内容
*优化安卓插件EventBus 因混淆导致的release版本异常

1.1.2 版本更新内容
*优化iOS相册加载速度

1.1.1 版本更新内容
*优化安卓端第一次相册权限申请后无法获取数据问题

1.1.0 版本更新内容
*优化安卓端相册权限申请

1.0.9 版本更新内容
*优化安卓端相册权限申请

1.0.8 版本更新内容
*适配版本v1.12.13+hotfix.9

1.0.7 版本更新内容
*优化Android端缓存问题

1.0.6 版本更新内容
*优化iOS端GIF支持问题
*优化iOS端HEIC格式图片转换JPG问题

photo_album_manager's People

Contributors

charlesyun avatar

Forkers

cyrilhl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.