Closed YesThatGy closed 2 months ago
What information can I provide that you might find useful? EG: logs of what?
In use, because it is considered that re-inserting pictures will cause paging confusion, the FilterOptionGroup in the example will include the update time to ensure that without deleting the picture, the new picture will not affect the list paging of the old path. If you want the latest image to be loaded on each click, you need to use the new _filterOptionGroup in the _requestAssets method in the demo.
final filterOptionGroup = FilterOptionGroup(
imageOption: const FilterOption(
sizeConstraint: SizeConstraint(ignoreSize: true),
),
);
final List<AssetPathEntity> paths = await PhotoManager.getAssetPathList(
onlyAll: true,
filterOption: _filterOptionGroup,
);
Version
3.0.1
Platforms
Android
Device Model
Moto Razr + 2023
flutter info
How to reproduce?
I am starting with the example app. I do the following:
1) Run the example app: a) run _requestAssets() b) View the list of pictures
2) Switch to camera a) take a picture
3) Switch back to the example app a) run _requestAssets() b) The list of pictures does not include the new picture c) EXPECTED: new picture shows. (it does not)
4) restart the example app a) New picture now shows.
I've tried adding a call at the top of _uploadAssets() to
PhotoManager.clearFileCache();
and it had no effect.Logs
No response
Example code (optional)
No response
Contact
yesthatguy@gmail.com