I'm writing a calendar like todo app using Rust egui with eframe. Each todo is a combination of different widgets (text_edit_singleline and two buttons) How do I add a new todo when pressing a third button. Thank you in advance.
I already tried to integrate a new widget in:
if ui.button("ADD TODO").clicked() {
// add todo
}
But then the new widget only appears for a couple of frames.