srcrip / live_toast

A beautiful drop-in replacement for the Phoenix Flash system.
https://toast.src.rip
MIT License
185 stars 14 forks source link

Persistent and Updateable toasts #23

Closed mhanberg closed 1 day ago

mhanberg commented 2 weeks ago

Problem

Currently you can't put a toast that persists (infinite duration) and can be updated.

Uses cases are basically different forms of progress indicators. My current incarnation of this would be to push a toast that says "Foo requested... spinner" and when Foo is finished, the toast gets updated with "Foo finished in XXms!" then it stays for 5 seconds then disappears.

What I currently have is just pushing two different toasts.

mhanberg commented 1 day ago

Actually I think is is already possible, I just didn't read the docs correctly.