Add a Toast in the bottom-right corner
This commit is contained in:
1 parent
25ea57bcaf
commit
b604b9ff5b
1 file changed
+6
-1
@@ -183,7 +183,12 @@ impl<S: 'static + Send + Sync + Clone> WorkspaceElement<S> {
|
||||
.child(StatusBar::new())
|
||||
.child(Toast::new(
|
||||
ToastOrigin::Bottom,
|
||||
|_, _| vec![Label::new("label").into_any()],
|
||||
|_, _| vec![Label::new("A toast").into_any()],
|
||||
Box::new(()),
|
||||
))
|
||||
.child(Toast::new(
|
||||
ToastOrigin::BottomRight,
|
||||
|_, _| vec![Label::new("Another toast").into_any()],
|
||||
Box::new(()),
|
||||
))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user