omarhurani / flutter_painter

A Flutter widget to draw scribbles and text on a background image or color 🎨
MIT License
134 stars 106 forks source link

Drawable Objects going off the canvas during Container resizing and do not positioned correctly #50

Open sandundev opened 1 year ago

sandundev commented 1 year ago

I noticed that the drawable object do not automatically resize during the main container resizing.

For an example I change the main container widget size during orientation change to use the max space available. background image is resized correctly. However drawable objects are not being resized and are not re-positioned when the parent widget size change.

Is there any solution to fix this unexpected behaviour?

image
coder-with-a-bushido commented 6 months ago

@sandundev Did you manage to find a solution to this?

pulpcorn commented 2 weeks ago

To change the size of any drawing object, you must set the Size parameter value in the Painter class.

Painter class located on: flutter_painter/lib/src/views/painters/painter.dart