charlesyun / photo_album_manager Goto Github PK
View Code? Open in Web Editor NEWThis is the plug-in can quickly get album resources, support for android and iOS
License: MIT License
This is the plug-in can quickly get album resources, support for android and iOS
License: MIT License
BUG情况:
pubspec.yaml中添加photo_album_manager: ^1.1.3甚至photo_album_manager: ^1.1.2
运行pub get均报错:
flutter pub get
Running "flutter pub get" in xxx... 1.4s
Invalid plugin specification photo_album_manager.
Invalid "plugin" specification.
Process finished with exit code 1
测试安卓发现
图片516个,用时6秒多
time img:6038
视频5个,用时7秒多,
time video:7219
需要优化,ios未测试(photo_manager没有这个现象)
问题:flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
如图:
我大致查找到的问题是:使用我们自己的Activity进行加载FlutterFragment时,FlutterFragment监测不到已经附着到Activity上去了,导致Flutter channel没有进行初始化。但是我在FlutterFragment类中找到了以下属性:
protected static final String ARG_SHOULD_ATTACH_ENGINE_TO_ACTIVITY ="should_attach_engine_to_activity";
但是我设置了“true”还是没有效果依然报上面的错误。看看大家有解决的方法吗?
大哥求更新
似乎无法读取照片啊,权限拒绝。
我用来测试的android机本身只有20来张图片,经过多次测试app调用图片之后,有个pic的文件夹的图片已经达到了3000+了,看上去是判断是否已经缓存那里有问题
缓存很严重,在相册里将视频删除后 还是会读到路径和缩略图。
Every time I get a picture, there will be twice as many pictures. I found that there is a "pic" folder stored inside the phone, all of which are thumbnails. I guess it is caused by the cache. Every time the method of obtaining pictures is used, it will be newly generated. The thumbnails of all the original pictures are repeated a lot.
视频或者图片。无法获取到在qq文件里的视频或者图片的缩略图。我同样获取本地相机的拍照的图片的缩略图。也是无法获取到的。thumbPath显示是null。originalPath和ilocalIdentifier则是存在的
ios 11.1.2 下分类查询不正确,图片都跑到视频里面了
ios 13.4.1 查询不到图片和视频
BUG情况:debug时没有问题,打包release时报错:
warning: unknown enum constant ThreadMode.POSTING
reason: class file for org.greenrobot.eventbus.ThreadMode not found
1 warning
继续安装apk后打开时闪退
从pubspec.yaml中删除photo_album_manager: ^1.1.2重新打包就不闪退了
确定是photo_album_manager的问题
flutter版本:1.17.2
getOriginalResource 通过唯一标识localIdentifier 获取资源(原图、原视频)
老哥麻烦把permission_handler升级到7.1.0
现在depends on permission_handler ^5.0.1+1
装不了了呢
ios模拟器,获取相册资源时,AlbumModelEntity资源对象下的originalPath一直为null,只能获取缩略图地址thumbPath。求解决
安卓找不到文件
List photos = await PhotoAlbumManager.getDescAlbum(maxCount: 50);
D(photos[0].thumbPath);
D(photos[0].originalPath);
Hey, how about to migrate to AndroidX?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.