Skip to content

Add toast or snackbar #4344

Answered by bjorn
loloof64 asked this question in Ideas
Jan 15, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I have implemented part of such a widget in my app as follows:

https://github.com/bjorn/raccoin/blob/c1198b61c5b29cdc31b0c1599064149b1d485d74/raccoin_ui/ui/appwindow.slint#L171-L200

The backend can push a notification into the model, and the UI removes it by index. The part which I didn't implement yet is to automatically hide the notification after a timeout, and there is no animation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@loloof64
Comment options

Answer selected by loloof64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants