-
Notifications
You must be signed in to change notification settings - Fork 823
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
How to save the new inserted image in custom directory #1529
Comments
Hi, thank you for the report, I will check it out in a few moments |
I see what you mean but this is just an example, image cropper is not used by default in The new way of inserting an image is by using The default is: OnImageInsertCallback defaultOnImageInsertCallback() {
return (imageUrl, controller) async {
controller
..skipRequestKeyboard = true
..insertImageBlock(imageSource: imageUrl);
};
}
|
Please let me know if you have any other questions |
We have remade the If you still facing any other issues or have any other questions feel free to ask us on GitHub at any time. |
I see that. Thank you for your support 😊 |
Is there an existing issue for this?
Steps to reproduce
I ran the sample code, after selecting a photo from the gallery and returning a new string in the method '
_onImagePickCallback
', However, the URL of the image in 'controller.document
' is still with 'file.path', May I ask how the current version should be replaced in document ?Expected results
[{"insert":{"Change to costom url string"}},{"insert":"\n"}]
Actual results
[{"insert":{"image":"/data/user/0/com.example.example/cache/image_cropper_1699932556689.jpg"}},{"insert":"\n"}]
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output (optional)
No response
The text was updated successfully, but these errors were encountered: