How to remove picture from flutter quill document programmatically onTap method? #600
Unanswered
MuhammadMusa22
asked this question in
Mobile
Replies: 1 comment 2 replies
-
Use defaultEmbedBuilder as example and try
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have used flutter quill rich text editor in one of my project where user can create diary from flutter quill toolbar options and also can upload pictures also. So,
Q1) when user upload picture I immediately upload that picture to firesbase storage in _onImagePickCallback() method but if user hit backspace then that picture will be removed from document but it still there in firebase storage. So, how to tackle that backspace or any remove method listener inside flutter quill. (One Approach I tried is don't upload picture immediately but only at the end when user create document and want to create diary, but here I faced problem how to change all those local images to online through uploading to firebase storage.)
Q2) I have used _customEmbedBuilder() method, to draw custom design container for images in flutter quill but I also put a Cross icon on the top of picture so when user tap on that, that picture will be removed from the document regardless where the cursor is, and I don't know how to do this. Here is the link of my stack overflow question and picture of UI.
https://stackoverflow.com/q/70729108/8805294
Beta Was this translation helpful? Give feedback.
All reactions