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.
Asked
Active
Viewed 175 times
0

WSBT
- 33,033
- 18
- 128
- 133

Sandesh Pargaonkar
- 21
- 2
-
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