How can I get a standalone CropImageEditor that when its done it opens the FilterImageEditor and then its done? Similar to instagram/linkedin #175
-
My goal is to open standalone crop editor followed by filter editor and thats it. in the end i want the cropped and filtered image. As of now I only have this. But I notice when i send the edited image to my BloC it is not cropping the image at all. so...
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Hi,
return bytes == null ? CropRotateEditor.memory(...) : FilterEditor.memory(...) |
Beta Was this translation helpful? Give feedback.
-
this is what i believe to be the best way of doing it!. I will make a custom appbar for both crop and filter editors but for now it looks like this:
|
Beta Was this translation helpful? Give feedback.
-
@hm21 hi again. There is only one thing bothering me which is when i crop the image there is a small dialog with a circularloadingindicator which takes a few seconds. Cant the crop be done instantaneously? I would like for the users to tap on the crop and instantly go to the filtereditor without delay |
Beta Was this translation helpful? Give feedback.
In these logs, I can see that there is a problem with the `DeferredPointerHandler' which tries to draw an element that doesn't exist, or the size is infinite or null. This normally happen when the image data is broken or when a parent widget shrinks/expands the editor to infinite size.
However, when I looked at your good it didn't look like there was any issue with the parent elements, but maybe with the image source you are inserting. As you can see, there are 5 ways to open the editor like
CropRotateEditor.asset
orCropRotateEditor.memory
. In case you now add an asset path to the memory constructor it will still open the editor and the editor will try to decode it even if there is a wro…