0

I have been trying to add a draggable polygon. The process is that User gives me length of 4 sides and then a shape is generated which is placed on canvas. He should be able to drag the points of polygon. In flutter, free hand drawing app can be created using GestureDetector, paint widget. But i was not able to find proper option to create simple draggable line or polygon.

WSBT
  • 33,033
  • 18
  • 128
  • 133
  • post your `CustomPainter`'s code then – pskink Nov 09 '21 at 05:53
  • there's no "simple draggable line" in custom paint, you just get the coordinates using GestureDetector like you said, and do the math yourself – WSBT Nov 09 '21 at 06:36

0 Answers0