-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: Failed to build unique file #198
Comments
Thank you for filling this issue @Lo4D https://takusan.negitoro.dev/posts/android_unique_file/ This article is in Japanese, but is well organized. And I am now working on a solution. |
This issue has been resolved. The latest version will be uploaded to pub.dev later. No changes have been made to add parameters to |
Thanks for your fix, @natsuk4ze ! |
You're welcome, adding a parameter to putImageBytes is not a bad idea, but it has nothing to do with this bug, so it was passed up. |
Why there is a default value for the name parameter? if the user use it multiple times it will cause exception because image.png is already exists Maybe it's better if it required instead of a default value? |
Is that true? The system should automatically avoid duplicates even if they have the same file name. |
I updated static Future putImageBytes(Uint8List bytes, Is that code correct? |
What is this code? |
The implementation of gal_linux I'm trying to update gal_linux to be compatible with 2.3.0 of gal You have added a new parameter called name so I'm trying to adapt the new way of generating file name |
discord |
Did you check the documentation and it did not help?
Overview
Hi!
I use
Gal.putImageBytes()
and it saves image asimage.png
. Everything was fine, until theimage(32).png
, meaning thatimage(31).png
is created perfectly fine, but next one is not. I've tested it by deletingimage(31).png
and it worked fine again, but not after it. I'm testing on POCO F4 with android 13.I'm not sure if one will encounter the same error on other devices. But please, consider adding a
String name = 'image.png'
as aputImageBytes()
paramater.Steps to reproduce
Uint8List
image usingGal.putImageBytes
Code sample
Code sample
Environment
Logs
Logs
Logs
The text was updated successfully, but these errors were encountered: