@Zach Klippenstein (he/him) [MOD] I’m migrating a large app from View-based to Compose. There are about 30 places where Toasts are invoked. Almost always these are places in the code where the UI is not immediately available programmatically, but perhaps a
Context
is, and so it’s been a case of just using the
Context
or passing one down, rather than a more verbose system of event handling. These
Toast
messages are usually something very simple, like “no items” when realising a list is empty and so aborting some workflow. A more concrete use case where a
Toast
is preferable is while a
Dialog
is being shown, in which case the snackbar is shown behind and so, not only dimmed and clickable, but also sometimes obscured.