fluttercandies / flutter_photo_manager

A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
https://pub.dev/packages/photo_manager
Apache License 2.0
647 stars 297 forks source link

[Bug report] 修改手机系统时间为2020,相册获取空了,时间应该是可以查到的,是什么原因? #1100

Closed ShuangZiMoYin closed 2 weeks ago

ShuangZiMoYin commented 2 months ago

Version

3.0.0

Platforms

dart

Device Model

iPhone

flutter info

Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3930], locale zh-CN)
    • Flutter version 3.10.6 on channel stable at C:\Users\sangfor\scoop\apps\flutter\current

How to reproduce?

final FilterOptionGroup filterOption = FilterOptionGroup( createTimeCond: DateTimeCond( min: DateTime(1990, 1, 1), max: DateTime(3000, 12, 30), ), );

final groups = await PhotoManager.getAssetPathList(
  type: RequestType.image,
  filterOption: filterOption,
);

需要设置查询时间,才能查到,不设置的话,改了手机时间就空了。

Logs

No response

Example code (optional)

No response

Contact

No response

AlexV525 commented 2 months ago

默认的查询时间是到今日截止,如果照片都是在之后拍的就查不到了