hsbijarniya / image_editor_plus

Flutter Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.
MIT License
104 stars 103 forks source link

Replace black screen with chosen image when drawing #10

Closed Stefi16 closed 1 year ago

Stefi16 commented 2 years ago

Hello. Is there a way for the image to stay on the screen when drawing on it?

hsbijarniya commented 2 years ago

You can draw and then move and zoom it as overly layer.

Stefi16 commented 2 years ago

Ye but is it possible to still have the image in the background?

ReggieMiller1 commented 2 years ago

Ye but is it possible to still have the image in the background?

i managed to make it possible....go to line 1400 around there under 'ImageEditorDrawing' statefull widget then add the following under the 'Container': decoration: BoxDecoration(color: Colors.orange,image:DecorationImage(image:MemoryImage(image.image),fit: BoxFit.cover ), **REMEMBER TO COMMENT OUT 'color'***