I'm making a whiteboard app.
I learned how to draw lines using GestureDetector() and CustomPaint(). Now I'm going to draw the shapes, but I don't know how to draw the location and size of the shape by touching and dragging them after selecting the shape tool.
The image below is an example of another whiteboard app.
Can you tell me how to draw by dragging the shape as below?