Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
mirunamd opened this issue 4 years ago · comments
Is there any code that deals with this sort of behaviour? I changed the code a little and I want to make sure I didn't delete the part of the code that is responsible for not drawing outside the canvas.
Turns out it was just a matter of not allowing offsets (localPosition) which were bigger or less than my canvas size in GestureDetector.
localPosition
GestureDetector