Closed 2p31-1 closed 1 year ago
Hey there! Thanks for the extensive issue! scribble uses history_state_notifier
internally for the undo/redo functionality. I would suggest you build your own extension of a HistoryStateNotifierMixin
that allows for combining multiple StateNotifier
s together and manage a shared undo/redo state. Since your usecase is very specific, I don't think this is within the scope of this package, but I'm happy to assist you. I will think about adding it to history_state_notifier, because I think it could be a worthwhile addition to that package (which would also trickle down to scribble), so feel free to open the issue on that repo again!
I'm doing a project using several canvases in a screen. I wonder that it is possible to revert or redo the drawing with just a button on several scribble widgets.
Here is the scenario I am expecting:
Scribble widgets are in various sized (they're resizable)
Drawing lines
revert with one button. The stack inside stores the orders of the scribbleNotifier which did drawing or erasing.
reverted in reverse order.