scribble icon indicating copy to clipboard operation
scribble copied to clipboard

fix: Devices resolution and orientation issue

Open Sesa1988 opened this issue 1 year ago • 1 comments

Hi,

Description

I use a Android and a Windows device. When I draw on the Windows device the screen and area is way larger. When I open the saved scribble via JSON on my Android device I can not see everything drawn. Is there a way to solve it? Maybe scrolling?

Steps To Reproduce

1.'Open app with scribble on large window device' 2. Draw on full area and save it 3. Open saved scribble from JSON on small device like a phone

This can also be reproduced by changing the device orientation without another device.

Sesa1988 avatar Aug 16 '24 08:08 Sesa1988

@timcreatedit Hi, do you think there is a workaround for this? Would be a cool feature to support. I am not sure what the best solution is but probably like scrolling?

Sesa1988 avatar Sep 04 '24 16:09 Sesa1988

You can handle this on the widget layer. Scribble purposefully doesn't have an opinion on this. Try wrapping your drawing area in a SizedBox so it has the same size on all devices.

You can then wrap that in FittedBox, or InteractiveViewer if you want the user to be able to zoom and pan around the drawing.

timcreatedit avatar Jan 08 '25 11:01 timcreatedit