You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on version 2.7.2, and now deal with some pictures with 0 width * 0 height. (I don't know why it is recognized as 0w*0h, but It is a picture, which shows in my phone's native gallery app)
I have noticed there is a filterOption param in method getAssetPathList and there is SizeConstraint in imageOption, of which the default value is:
On my android phone(android 10, EMUI 11.0.0), even the minWidth and minHeight set to 0, those 0 width and 0 height pictures still get filtered. Only when I set ignoreSize to true will they appear. But on an android 10 emulater, with the default filter option, those pictures will show up correctly.
This is weird why the behavior is different. Which doesn't make sense but it is the case. Maybe just an unexpected behavior of this particular android version of my phone and sadly I cannot even reproduce it on emulator.
So, to make things works, setting ignoreSize might be the only workaround for me. The question is what actually does ignoreSize do? Is it just bypass size check? will it causes more trouble if I set it to true?
My code
just calling PhotoManager.getAssetPathList to get all image folders
Try do it
No response
The text was updated successfully, but these errors were encountered:
Platforms
dart, Android
Description
I am on version 2.7.2, and now deal with some pictures with 0 width * 0 height. (I don't know why it is recognized as 0w*0h, but It is a picture, which shows in my phone's native gallery app)
I have noticed there is a
filterOption
param in methodgetAssetPathList
and there is SizeConstraint in imageOption, of which the default value is:On my android phone(android 10, EMUI 11.0.0), even the minWidth and minHeight set to 0, those 0 width and 0 height pictures still get filtered. Only when I set ignoreSize to true will they appear. But on an android 10 emulater, with the default filter option, those pictures will show up correctly.
This is weird why the behavior is different. Which doesn't make sense but it is the case. Maybe just an unexpected behavior of this particular android version of my phone and sadly I cannot even reproduce it on emulator.
So, to make things works, setting ignoreSize might be the only workaround for me. The question is what actually does ignoreSize do? Is it just bypass size check? will it causes more trouble if I set it to true?
My code
just calling
PhotoManager.getAssetPathList
to get all image foldersTry do it
No response
The text was updated successfully, but these errors were encountered: