So I got Italo’s color picker into my drawing app and got it to work with my Drawing screen via a TinyDB. But when I go from the ColorPicker screen back to the drawing screen, obviously the screen is initialized anew and the previous things drawn are not there anymore. Is there a way to save the elements that are drawn before switching to the ColorPicker screen and redraw them upon reopening of the Drawing screen?
By the way, this is the structure of my drawing blocks.