omarhurani / flutter_painter

A Flutter widget to draw scribbles and text on a background image or color 🎨
MIT License
139 stars 107 forks source link

Does the package have method or function to remove all drawables? #47

Closed VietNguyen392 closed 1 year ago

sandundev commented 1 year ago

I ended up doing this. You can also call undo() while 'canUndo = true'.

Future undoAll() async { controller = PainterController(...); initBackground(backgroundImage!); }

VietNguyen392 commented 1 year ago

I ended up doing this. You can also call undo() while 'canUndo = true'.

Future undoAll() async { controller = PainterController(...); initBackground(backgroundImage!); }

litte late but thank for response