cushy
cushy copied to clipboard
Added todo example
I added a simple todo example, this is still in draft because I haven't figured out how to modify the database in the on_key event.
I could use some guidance here. 🙏🏼
Closes #57
Sorry for the delay in getting back to you! Thank for taking a stab at this. I had previously started one a long time ago, then I removed it before releasing v0.1 because I never finished it. That being said, however, it does have the basic "Add a task" flow hooked up through a default button.
Why was it never finished? At the time I started it, I didn't have enough widgets to make it work the way I wanted. That inspired me to do some other work, but I just never got around to taking the example across the finish line.
To get back to you original question: In short, the data structure for the todos should be some sort of collection stored inside of a Dynamic. This can then be synchronized with a Children widget. This API is not ideal and is probably one of the ugliest parts of Gooey's design right now.